From ff98b61c1d2ebb0d3c28b1f5846380fa35b59f30 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 Dec 2022 18:56:49 -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 6d810b92..52a70f1b 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -165,7 +165,7 @@ STATUS(){ fi if [ "${checkhost}" != "false" ]; then if [ "${ST_ACTION}" != "check" ]; then - if [ "${ST_ACTION}" = "report" ] && [ "${2}" = "email" ]; then + if [ "${ST_ACTION}" = "report" ] && [ "${2}" != "email" ]; then uptime=`${NCMD} uptime -p` elif [ "${ST_ACTION}" != "report" ]; then uptime=`${NCMD} uptime -p`