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:
parent
5f5973a739
commit
1395bd4cae
1 changed files with 5 additions and 1 deletions
|
|
@ -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}"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue