]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
ctdb-tools: Use a clear and readable if-statement
authorMartin Schwenke <martin@meltin.net>
Fri, 11 Aug 2017 04:06:30 +0000 (14:06 +1000)
committerAmitay Isaacs <amitay@samba.org>
Mon, 14 Aug 2017 03:15:25 +0000 (05:15 +0200)
This is consistent with the if-statement above.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/tools/onnode

index 8da40d2bd2155b6285c8e5a6828d78a59452f855..ac4f6ba96b1140b741c0455c741e4703ec7725af 100755 (executable)
@@ -391,11 +391,11 @@ for n in $nodes ; do
     fi
 done
 
-$parallel && {
+if $parallel ; then
     for p in $pids; do
        wait "$p"
        [ $? = 0 ] || retcode=$?
     done
-}
+fi
 
 exit $retcode