remove set -e from bin/cdist-mass-deploy and bogus shift

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-04-20 13:46:08 +02:00
parent acb1fd45da
commit 43526d41a5

View file

@ -23,7 +23,7 @@
. cdist-config . cdist-config
[ $# -ge 1 ] || __cdist_usage "[-p] <target host> [target host ]" [ $# -ge 1 ] || __cdist_usage "[-p] <target host> [target host ]"
set -eu set -ux
filter() filter()
{ {
@ -50,8 +50,8 @@ while [ $# -gt 0 ]; do
shift shift
done done
e=0
if [ "$parallel" ]; then if [ "$parallel" ]; then
e=0
__cdist_echo info "Waiting for cdist-deploy-to jobs to finish" __cdist_echo info "Waiting for cdist-deploy-to jobs to finish"
while [ "$i" -gt 0 ]; do while [ "$i" -gt 0 ]; do
eval pid=\$pid_$i eval pid=\$pid_$i
@ -61,7 +61,6 @@ if [ "$parallel" ]; then
eval e_host_$e=\$host_$i eval e_host_$e=\$host_$i
fi fi
i=$((i-1)) i=$((i-1))
shift
done done
fi fi