Avoid silent exit with set mode -e
This commit is contained in:
parent
07b3c6dd48
commit
ba59df1892
@ -21,8 +21,8 @@ checkup() {
|
|||||||
while :
|
while :
|
||||||
do
|
do
|
||||||
pinfo "Checking availability of node $host..."
|
pinfo "Checking availability of node $host..."
|
||||||
ssh root@${hosts[$host]} <<< true &>/dev/null
|
if true | ssh root@${hosts[$host]};
|
||||||
if [ $? == 0 ]; then
|
then
|
||||||
pinfo "VM $host is up!"
|
pinfo "VM $host is up!"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user