diff --git a/platform/shell-sync/sync.sh b/platform/shell-sync/sync.sh index 490f5db6..4d9b3902 100644 --- a/platform/shell-sync/sync.sh +++ b/platform/shell-sync/sync.sh @@ -360,3 +360,11 @@ run_cron_scheduler() { wait "$CRON_PID" } +run_once() { + log "Running in ONCE mode" + local status=0 + sync_all || status=$? + log "One-shot sync complete" + return "$status" +} +