feat(shell-sync): run_once

This commit is contained in:
hoelee committed 2026-09-16 12:02:00 +08:00
1 parent 70da49e95c
commit 3db9022e2f
1 file changed
+8
+8
View File
@@ -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"
}