From 74bdff4e79ef76be86133f35b58945469ca8c8c7 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Wed, 27 Dec 2017 19:02:03 +0300 Subject: [PATCH] [generator] Fix unbound OSC error --- tools/unix/generate_planet.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/unix/generate_planet.sh b/tools/unix/generate_planet.sh index d4ed0628af..d21e13f592 100755 --- a/tools/unix/generate_planet.sh +++ b/tools/unix/generate_planet.sh @@ -359,7 +359,7 @@ if [ "$MODE" == "coast" ]; then if [ -n "$OPT_UPDATE" ]; then log "STATUS" "Step 1: Updating the planet file $PLANET" PLANET_ABS="$(cd "$(dirname "$PLANET")"; pwd)/$(basename "$PLANET")" - OSC_ABS="$(cd "$(dirname "$OSC")"; pwd)/$(basename "$OSC")" + [ -n "${OSC-}" ] && OSC_ABS="$(cd "$(dirname "${OSC-}")"; pwd)/$(basename "${OSC-}")" ( cd "$OSMCTOOLS" # osmupdate requires osmconvert in a current directory ./osmupdate --drop-author --drop-version --out-o5m -v "$PLANET_ABS" "$PLANET_ABS.new.o5m"