From 73f98de5322f3fdd57a2ede294516b21f7a38685 Mon Sep 17 00:00:00 2001 From: Ilya Zverev Date: Wed, 10 Feb 2016 20:32:30 +0300 Subject: [PATCH] [generator] Fix generate script 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 3a1c6bd3b6..dce66a66af 100755 --- a/tools/unix/generate_planet.sh +++ b/tools/unix/generate_planet.sh @@ -258,7 +258,7 @@ if [ "$MODE" == "coast" ]; then # Preprocess coastlines to separate intermediate directory "$GENERATOR_TOOL" --intermediate_data_path="$INTCOASTSDIR/" --node_storage=map --osm_file_type=o5m --osm_file_name="$COASTS_O5M" \ -preprocess 2>> "$LOG_PATH/WorldCoasts.log" - if [ -z "$OSRM_URL" ]; then + if [ -z "${OSRM_URL-}" ]; then log "OSRM_URL variable not set. World roads will not be calculated." else python "$ROADS_SCRIPT" "$INTCOASTSDIR" "$OSRM_URL" >>"$LOG_PATH"/road_runner.log