From 17045d23fe2d81c970f8f5b923d64954f405ac1f Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Sun, 6 Feb 2022 23:22:01 +0300 Subject: [PATCH] Use integer comparison in bench.sh --- bench/bench.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bench/bench.sh b/bench/bench.sh index cf404776..99823623 100755 --- a/bench/bench.sh +++ b/bench/bench.sh @@ -77,7 +77,7 @@ function ls_files { get_howmany $@ # people usually use ls in the terminal when color is on numfiles=$(ls -1 --color=always | wc -l) - if [ "$numfiles" != "$howmany" ]; then + if [ "$numfiles" -ne "$howmany" ]; then echo "$numfiles != $howmany" false fi @@ -95,7 +95,7 @@ function rm_files { function find_files { numfiles=$(find . | wc -l) - if [ "$numfiles" != 820 ]; then + if [ "$numfiles" -ne 820 ]; then echo "$numfiles != 820" rm_tree exit 1