feat(shell-sync): add run_once()

This commit is contained in:
hoelee committed 2026-07-16 09:00:00 +08:00
1 parent ebb7df6585
commit be9191c8a5
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"
}