osm-garmin: fix incorrect argument checking logic
parent
e0f1d52286
commit
0d622e7cf1
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue