From 8d346acb4fd0981e8845033efd30dadd1842eb14 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 13 Apr 2016 16:04:33 +0800 Subject: [PATCH] test/encoding/readable: use [ for "test" not (( and use '&&' instead, easier to understand. this also fixes following error in the ubuntu gitbuilder error: Added files: + cat .git/added-files src/0 where sh points to dash. Signed-off-by: Kefu Chai --- src/test/encoding/readable.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/encoding/readable.sh b/src/test/encoding/readable.sh index 42cacb42975..80133681782 100755 --- a/src/test/encoding/readable.sh +++ b/src/test/encoding/readable.sh @@ -149,7 +149,7 @@ waitall() { # PID... errors=$(($errors + 1)) fi done - (("$#" > 0)) || break + [ $# -eq 0 ] && break sleep ${WAITALL_DELAY:-1} done [ $errors -eq 0 ]