From 93375ebb0d5f2756b119dda3827a9d2c822ed003 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 28 Jan 2019 19:00:36 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index d5e04f22..b6e1d16c 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -24,7 +24,7 @@ unset IFS case "$1" in service) containsElement "${2}" "${NODE_SERVICES[@]}" - if [[ "start,stop,restart" == *"${3}"* ]]; then + if [[ "start,stop,restart" != *"${3}"* ]]; then echo -e "${idsCL[Red]}(${3}) is not an allowed service action.${idsCL[Default]}" exit 1 fi