diff --git a/bup-sync-trigger.sh b/bup-sync-trigger.sh index 57381e8..5c320dc 100755 --- a/bup-sync-trigger.sh +++ b/bup-sync-trigger.sh @@ -115,12 +115,6 @@ goToSleep() { rtcwake --mode disk --date "$nextStart" } -if ! triggerLiesInPast -then - echo "The timestamp in the trigger event lies in the future. Waiting further." - exit 0 -fi - if [ -n "$suspend" ] then if [ -f "$lockFile" -o -n "$preventSleep" ] @@ -133,6 +127,12 @@ then fi fi +if ! triggerLiesInPast +then + echo "The timestamp in the trigger event lies in the future. Waiting further." + exit 0 +fi + echo "The backup script is triggered." while read line