osm-garmin: fix check_osm_region_exists()
parent
6262ebeda8
commit
1708147f65
|
@ -16,7 +16,7 @@ function check_osm_region_exists() {
|
|||
region="$1"
|
||||
exists="true"
|
||||
|
||||
curl -ILs --fail "$(get_pbf_url "$region")" 2> /dev/null
|
||||
curl -ILs --fail "$(get_pbf_url "$region")" &> /dev/null
|
||||
[[ $? != 0 ]] && exists="false"
|
||||
|
||||
echo $exists
|
||||
|
|
Loading…
Reference in New Issue