From 92a8405d6be6b76e9ca9b56e585ce14f83183111 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 1 Jan 2023 08:47:44 -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 dddeb3ff..b9fe4867 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2421,7 +2421,7 @@ if [ ${action-x} ]; then backup) BACKUP;; downlist) if [ "${2}" = "report" ]; then - if [ -f /opt/idssys/nodemgmt/*.down ]; then + if [ "$(`find /opt/idssys/nodemgmt -name "*.down"`)" != "" ]; then rm -f ${FOLDER}/status-downlist.lastrun DOWNLIST report >> ${FOLDER}/status-downlist.lastrun STATUSLOG="$(cat ${FOLDER}/status-$downlist.lastrun)"