2
0
Fork 0

osm-garmin: various

This commit is contained in:
Ducky 2023-10-02 16:40:25 +01:00
parent 8a2cafd2ee
commit bcf7ff90d8
5 changed files with 75 additions and 39 deletions

View file

@ -1,23 +0,0 @@
#!/usr/bin/env bash
. /app/utils.sh
sleep_time=3600
sleep_time_fail=60
function wait() {
delay="$1"
echo "💤 Sleeping $delay seconds..."
sleep $delay
}
while :
do
/app/build-gmap.sh "$OSMGARMIN_REGIONS" "$OSMGARMIN_STYLE"
if [[ $? == 0 ]]; then
wait $sleep_time
else
wait $sleep_time_fail
fi
done