feat(shell-sync): run_once

This commit is contained in:
hoelee committed 2026-09-16 12:02:00 +08:00
1 parent 7b3ebf3d3e
commit f0418f3273
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"
}