From 308bd84e2d2196569dd10a1d7b315c59c349e9dd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 3 Apr 2019 19:35:35 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index cd65f550..e3294516 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -1262,8 +1262,8 @@ SERVICE(){ nid=1 var2=${NTYPE}_HOSTS[@] for nip in "${!var2}"; do - if [ -z ${3+x} ] || [ "${3}" == "q" ]; then GO=true; - elif [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${3}"* ]]; then GO=true; + if [[ $(/sbin/ip -o -4 addr list eth0 | awk '{print $4}' | cut -d/ -f1) == *"${3}"* ]]; then GO=true; + elif [ ! -z ${3+x} ] || [ "${3}" == "q" ]; then GO=true; else GO=false; fi if [ "${GO}" == "true" ]; then