From be9191c8a550e82b8b9725ed9a6d67627ef2ee64 Mon Sep 17 00:00:00 2001 From: hoelee Date: Thu, 16 Jul 2026 09:00:00 +0800 Subject: [PATCH] feat(shell-sync): add run_once() --- platform/shell-sync/sync.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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" +} +