refactor(scripts): ♻️ Replace inline arithmetic in dev.sh with explicit if-else logic for clearer conditional flow

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Claude Code 2026-04-08 15:39:55 -07:00
parent 5f5973a739
commit 1395bd4cae

View file

@ -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}"