diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 15057f02..99023c56 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -779,7 +779,7 @@ RUN_COMMAND(){ shift done echo "NODETYPE1= '${nodetype}'" - if [ "${nodetype}" == "ALL" ] || [ -n ${nodetype} ]; then + if [ "${nodetype}" == "ALL" ] || [ -z ${nodetype+x} ]; then echo 1 nodetype=ALL NT_HOSTS=ALL_HOSTS[@]