From 8647d1f0a02f685cc4c3eee5fc95f0c0e6cff876 Mon Sep 17 00:00:00 2001 From: Ducky Date: Mon, 2 Oct 2023 23:40:52 +0100 Subject: [PATCH] osm-garmin: add ability to set sleep from globvar --- osm-garmin/app/daemon.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osm-garmin/app/daemon.sh b/osm-garmin/app/daemon.sh index 9934671..1863911 100644 --- a/osm-garmin/app/daemon.sh +++ b/osm-garmin/app/daemon.sh @@ -5,6 +5,8 @@ sleep_time=3600 sleep_time_fail=60 +[[ -n $OSMGARMIN_DAEMON_SLEEP ]] && sleep_time=$OSMGARMIN_DAEMON_SLEEP + function wait() { delay="$1" echo "💤 Sleeping $delay seconds..."