From 8abbf5bd6101be687e567479935b7ac3cce3c7ed Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Jan 2019 20:46:40 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 86341481..021f2d84 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -20,9 +20,7 @@ case "$1" in TESTT=$? echo "HERE: '${TEST}'-'${TESTT}'" - if ! containsElement "${2}" "${NODE_SERVICES[@]}" ; then echo "skipping table: ${2}"; fi; - - if [ "$(containsElement "${2}" "${NODE_SERVICES[@]}")" = "1" ] && [ "$(containsElement "${2}" "${LOCAL_SERVICES[@]}")" = "1" ]; then + if ! containsElement "${2}" "${NODE_SERVICES[@]}" && ! containsElement "${2}" "${LOCAL_SERVICES[@]}" ; then echo -e "${idsCL[Red]}(${2}) is not an allowed service.${idsCL[Default]}" exit 1 fi