From 43526d41a524fdcb9105be80b3a3010172fc00c6 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Wed, 20 Apr 2011 13:46:08 +0200 Subject: [PATCH] remove set -e from bin/cdist-mass-deploy and bogus shift Signed-off-by: Nico Schottelius --- bin/cdist-mass-deploy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/cdist-mass-deploy b/bin/cdist-mass-deploy index e8e2594f..d95e9606 100755 --- a/bin/cdist-mass-deploy +++ b/bin/cdist-mass-deploy @@ -23,7 +23,7 @@ . cdist-config [ $# -ge 1 ] || __cdist_usage "[-p] [target host ]" -set -eu +set -ux filter() { @@ -50,8 +50,8 @@ while [ $# -gt 0 ]; do shift done -e=0 if [ "$parallel" ]; then + e=0 __cdist_echo info "Waiting for cdist-deploy-to jobs to finish" while [ "$i" -gt 0 ]; do eval pid=\$pid_$i @@ -61,7 +61,6 @@ if [ "$parallel" ]; then eval e_host_$e=\$host_$i fi i=$((i-1)) - shift done fi