From 0d622e7cf121f126675f2fb4449bde98c71048f4 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 2 Oct 2023 21:05:27 +0100 Subject: [PATCH] osm-garmin: fix incorrect argument checking logic --- osm-garmin/app/build-gmap.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osm-garmin/app/build-gmap.sh b/osm-garmin/app/build-gmap.sh index 02672e7..84b40ad 100755 --- a/osm-garmin/app/build-gmap.sh +++ b/osm-garmin/app/build-gmap.sh @@ -131,8 +131,8 @@ mkdir -p "$maps_dir" mkdir -p "$out_dir" mkdir -p "$tiles_dir" -[[ -n "$regions" ]] && die "No regions given (1st argument)" -[[ -n "$style" ]] && die "No style given (2nd argument)" +[[ -z "$regions" ]] && die "No regions given (1st argument)" +[[ -z "$style" ]] && die "No style given (2nd argument)" regions_array="$(echo $regions | tr ";" "\n")" is_updates="false"