From 1846ba045918a6f80be1fea5edaa84cb69cbe485 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Jan 2023 10:14:38 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6611d6d2..580b705d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2418,8 +2418,7 @@ if [ ${action-x} ]; then backup) BACKUP;; downlist) if [ "${2}" = "report" ]; then - DOWN_LIST=`find ${FOLDER} -name "*.down"` - if [ "${DOWN_LIST}" != "" ]; then + if [ "$(`find ${FOLDER} -name "*.down"`)" != "" ]; then rm -f ${FOLDER}/status-downlist.lastrun DOWNLIST report >> ${FOLDER}/status-downlist.lastrun STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"