diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index a8741b3b..9c2b6bf6 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -260,7 +260,8 @@ STATUS(){ for NTYPE in "${NODE_TYPES[@]}"; do GOREPCHK=false; - if [ date +"%H" -ge "12" ] && [ date +"%H" -le "13" ] && [ "${NTYPE}" = "NC" ]; then + CHR=date +"%H"; + if [ "${CHR}" -ge "12" ] && [ "${CHR}" -le "13" ] && [ "${NTYPE}" = "NC" ]; then GOREPCHK=true; elif [ "${NTYPE}" != "NC" ]; then GOREPCHK=true;