diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a5eaa04d..56cb2047 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -778,7 +778,7 @@ RUN_COMMAND(){ esac shift done - if [ "${nodetype}" == "ALL" ] || ; then + if [ "${nodetype}" == "ALL" ] || [ -n "${nodetype}" ]; then NT_HOSTS=ALL_HOSTS[@] NTS=(${NM_NODE_TYPES[*]}) elif [ "${nodetype}" != "" ]; then