From f9f632085de3c577fba6439ce05fe1636db9a41c Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 6 Feb 2019 19:30:34 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 8316df60..a2a3911b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -81,8 +81,7 @@ NEWCERT(){ echo -en "${idsCL[LightYellow]}Waiting for certifcate replication between the nodes... ${idsCL[Default]}" until [ "${synccomplete}" = "true" ]; do synccomplete=true - for nip in "${NODE_HOSTS[@]}" - do + for nip in "${NODE_HOSTS[@]}"; do if [[ $(/sbin/ip -o -4 addr list ens192 | awk '{print $4}' | cut -d/ -f1) == *"${nip}"* ]]; then NCMD='' else NCMD="ssh root@${nip}" fi