From 9da37bb31501f76487e7a0d94252a6d10cefbba7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 24 Jul 2022 15:35:45 -0500 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 ae0b59d6..d65de192 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -144,7 +144,7 @@ STATUS(){ fi if [ "${checkhost}" != "false" ]; then if [ "${ST_ACTION}" != "check" ]; then - uptime=`${NCMD} uptime -p` + [ "${ST_ACTION}" != "report" ] && uptime=`${NCMD} uptime -p` echo -e " ${idsST[Bold]}${idsCL[LightCyan]}${NM_NODETYPES[$NTYPE]}-Node${nid} (${nip})${idsST[Reset]}${idsCL[LightCyan]} - ${uptime} ${idsCL[LightYello]}${LH}${idsCL[Default]}" DIVIDER false green fi