]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/encoding/readable: use [ for "test" not ((
authorKefu Chai <kchai@redhat.com>
Wed, 13 Apr 2016 08:04:33 +0000 (16:04 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Apr 2016 08:21:09 +0000 (16:21 +0800)
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 <kchai@redhat.com>
src/test/encoding/readable.sh

index 42cacb4297537c894259f6ef57f559239175d0af..801336817826649fe5041095f82e959ce65fb65f 100755 (executable)
@@ -149,7 +149,7 @@ waitall() { # PID...
          errors=$(($errors + 1))
        fi
      done
-     (("$#" > 0)) || break
+     [ $# -eq 0 ] && break
      sleep ${WAITALL_DELAY:-1}
     done
    [ $errors -eq 0 ]