Commit 427aeae
Fix bash arithmetic exit status in sync-project-status workflow
Use prefix increment ((++VAR)) instead of postfix ((VAR++)).
With postfix increment, when VAR=0, ((VAR++)) returns the old value (0),
which in bash means exit status 1. With set -e, this exits the script.
Prefix increment returns the new value (≥1), so exit status is always 0.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent b3cd31b commit 427aeae
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| |||
0 commit comments