From 87b5bd963836f9445129acb03686c2c634e70bbd Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 31 Dec 2022 18:55:20 -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 5623c811..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" ] && [ "${3}" != "email" ]; then + if [ "${ST_ACTION}" = "report" ] && [ "${2}" != "email" ]; then uptime=`${NCMD} uptime -p` elif [ "${ST_ACTION}" != "report" ]; then uptime=`${NCMD} uptime -p`