From 2025501edf14b24d30d906121449e4d431e36124 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 10 Dec 2019 23:14:06 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;