From 75adbb5010b014d8d230271344ba7e8ad4f9842f Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 17 Dec 2022 11:02:58 -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 6f4523b8..5e9e216f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -505,7 +505,7 @@ CHECK_DOCKER_SERVICES(){ dockers=${NTYPE}_DOCKER[@] hosts=${NTYPE}_HOSTS[@] - if [ "${!dockers}" != "" ]; then + if [ -n "${!dockers}" ]; then if [ "${ST_ACTION}" != "check" ]; then echo -e "${idsST[Bold]}"; DIVIDER echo -e "${idsCL[Yellow]} ${NM_NODETYPES[$NTYPE]}-Node Docker Service(s) Status${idsCL[Default]}"