Fix inverted sync logic in show-status.sh #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The
check_sync_status()function inshow-status.sh(lines 26-40) has inverted logic — it setsany_failure=truewhen sync-status.sh succeeds andcode=0when it fails.Impact
All sync status results are reported backwards — successful syncs may be reported as failures and vice versa.
Fix
Swap the logic so that:
any_failure=trueand error codeFound during codebase audit