From: Martin Schwenke Date: Fri, 11 Aug 2017 04:06:30 +0000 (+1000) Subject: ctdb-tools: Use a clear and readable if-statement X-Git-Tag: tdb-1.3.15~105 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=aa12ea77937b17c2c84cd5fce94f946d0e55f91f;p=thirdparty%2Fsamba.git ctdb-tools: Use a clear and readable if-statement This is consistent with the if-statement above. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs --- diff --git a/ctdb/tools/onnode b/ctdb/tools/onnode index 8da40d2bd21..ac4f6ba96b1 100755 --- a/ctdb/tools/onnode +++ b/ctdb/tools/onnode @@ -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