From ba59df1892f5370f43b2ac0e6d56bbc0741be0ed Mon Sep 17 00:00:00 2001 From: Guillaume Date: Wed, 14 Jun 2023 23:17:00 +0200 Subject: [PATCH] Avoid silent exit with set mode -e --- scripts/2.first_start_k8s.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/2.first_start_k8s.sh b/scripts/2.first_start_k8s.sh index 9821d81..0c9cc3b 100755 --- a/scripts/2.first_start_k8s.sh +++ b/scripts/2.first_start_k8s.sh @@ -21,8 +21,8 @@ checkup() { while : do pinfo "Checking availability of node $host..." - ssh root@${hosts[$host]} <<< true &>/dev/null - if [ $? == 0 ]; then + if true | ssh root@${hosts[$host]}; + then pinfo "VM $host is up!" break else