Disarm on offboard every sync gate onboard arms, with the same helper, so the two are one operation in both directions
This commit is contained in:
@@ -885,7 +885,10 @@ do_final_sync() {
|
||||
warn "CRITICAL_SYNC_SHARES is empty — skipping final sync (configure in host*.conf)"
|
||||
fi
|
||||
else
|
||||
warn "DRY RUN — would run final critical sync (${#CRITICAL_SYNC_SHARES[@]:-hardcoded} shares)"
|
||||
# ${#ARR[@]} and :- cannot be combined — bash rejects the whole word as "bad substitution",
|
||||
# so this line aborted Step 2 of every offboard --dry-run with a shell error instead of
|
||||
# printing. A count of an unset array is already 0, which is the only default needed.
|
||||
warn "DRY RUN — would run final critical sync (${#CRITICAL_SYNC_SHARES[@]} shares)"
|
||||
fi
|
||||
warn "Final sync complete — mirror has current state ✅"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user