feat(shell-sync): run_once
This commit is contained in:
1 parent
70da49e95c
commit
3db9022e2f
1 file changed
+8
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user