From 936c4f66d6a61b36f04387c7864049eee25c7156 Mon Sep 17 00:00:00 2001 From: Alexey Zakharenkov Date: Fri, 5 Jul 2019 17:57:10 +0300 Subject: [PATCH] If an error occurs during osmupdate (may provide not complete *.new.o5m) then the script should stop otherwise we get unwanted behaviour --- scripts/process_subways.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/process_subways.sh b/scripts/process_subways.sh index 3700d93..f654394 100755 --- a/scripts/process_subways.sh +++ b/scripts/process_subways.sh @@ -58,7 +58,7 @@ if [ -n "${GIT_PULL-}" ]; then ( PLANET_ABS="$(cd "$(dirname "$PLANET")"; pwd)/$(basename "$PLANET")" ( cd "$OSMCTOOLS" # osmupdate requires osmconvert in a current directory - ./osmupdate --drop-author --out-o5m "$PLANET_ABS" ${BBOX+"-b=$BBOX"} "$PLANET_ABS.new.o5m" && mv "$PLANET_ABS.new.o5m" "$PLANET_ABS" || true + ./osmupdate --drop-author --out-o5m "$PLANET_ABS" ${BBOX+"-b=$BBOX"} "$PLANET_ABS.new.o5m" && mv "$PLANET_ABS.new.o5m" "$PLANET_ABS" ) # Filtering it