From 1395bd4cae2dc2b0a838bc9df63ab334e32a4271 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Wed, 8 Apr 2026 15:39:55 -0700 Subject: [PATCH] =?UTF-8?q?refactor(scripts):=20=E2=99=BB=EF=B8=8F=20Repla?= =?UTF-8?q?ce=20inline=20arithmetic=20in=20dev.sh=20with=20explicit=20if-e?= =?UTF-8?q?lse=20logic=20for=20clearer=20conditional=20flow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Lilith Autocommit --- scripts/run/dev.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/run/dev.sh b/scripts/run/dev.sh index 1eb8269f..1574b7b4 100644 --- a/scripts/run/dev.sh +++ b/scripts/run/dev.sh @@ -139,7 +139,11 @@ cmd_verify() { # Count pending steps not yet run local n_pass=0 n_fail=0 for r in "${step_results[@]}"; do - [ "$r" = "PASS" ] && (( n_pass++ )) || (( n_fail++ )) + if [ "$r" = "PASS" ]; then + n_pass=$(( n_pass + 1 )) + else + n_fail=$(( n_fail + 1 )) + fi done if [ "$n_fail" -eq 0 ]; then echo -e " ${GREEN}All ${n_pass} checks passed${NC}"