From 19cb4eed4ed725a89c68c8caee16ff25d507c08a Mon Sep 17 00:00:00 2001 From: Jarell <91372088+jarelllama@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:25:51 +0800 Subject: [PATCH] Update --- functions/update_readme.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/update_readme.sh b/functions/update_readme.sh index 921c3172a..86e0931e2 100644 --- a/functions/update_readme.sh +++ b/functions/update_readme.sh @@ -161,7 +161,7 @@ count_excluded() { raw_count="$(csvcut -c 4 rows.tmp | awk '{total += $1} END {print total}')" # Return if raw count is 0 to avoid divide by zero error - [[ "$raw_count" -eq 0 ]] && { printf "0"; return; } + (( raw_count == 0 )) && { printf "0"; return; } white_count="$(csvcut -c 6 rows.tmp | awk '{total += $1} END {print total}')" dead_count="$(csvcut -c 7 rows.tmp | awk '{total += $1} END {print total}')" redundant_count="$(csvcut -c 8 rows.tmp | awk '{total += $1} END {print total}')"