From 7df49156ef2a51c6654e29a2cf4ef7ea4673d19a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 17 Dec 2022 11:04:33 -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 5e9e216f..53827d0f 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -505,7 +505,7 @@ CHECK_DOCKER_SERVICES(){ dockers=${NTYPE}_DOCKER[@] hosts=${NTYPE}_HOSTS[@] - if [ -n "${!dockers}" ]; then + if [[ -v ${!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]}"