feat(shell-sync): add run_once()
This commit is contained in:
1 parent
ebb7df6585
commit
be9191c8a5
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