forked from ungleich-public/cdist
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:
parent
acb1fd45da
commit
43526d41a5
1 changed files with 2 additions and 3 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
. cdist-config
|
||||
[ $# -ge 1 ] || __cdist_usage "[-p] <target host> [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
|
||||
|
||||
|
|
Loading…
Reference in a new issue