2
0
Fork 0

osm-garmin: improve performance

This commit is contained in:
Ducky 2023-09-26 04:01:15 +01:00
parent dd11cc0f98
commit 3a68e552ca
2 changed files with 27 additions and 26 deletions

View file

@ -10,15 +10,7 @@ do
[[ -n "$OSMGARMIN_REGIONS" ]] && regions="$OSMGARMIN_REGIONS"
[[ -n "$OSMGARMIN_STYLE" ]] && style="$OSMGARMIN_STYLE"
regions_array="$(echo $regions | tr ";" "\n")"
for region in $regions_array; do
if [[ "$(check_osm_update "$region")" == "true" ]]; then
/app/build-gmap.sh "$region" "$style"
# TODO: Tear this apart so we can update the maps and bounds separately,
# then build all the maps afterwards (less wasteful!)
fi
done
/app/build-gmap.sh "$regions" "$style"
sleep 3600
done