osm-garmin: improve performance
This commit is contained in:
parent
dd11cc0f98
commit
3a68e552ca
2 changed files with 27 additions and 26 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue