diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 991c6c33..6611d6d2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -2418,7 +2418,8 @@ if [ ${action-x} ]; then backup) BACKUP;; downlist) if [ "${2}" = "report" ]; then - if [ -f /opt/idssys/nodemgmt/*.down ]; then + DOWN_LIST=`find ${FOLDER} -name "*.down"` + if [ "${DOWN_LIST}" != "" ]; then rm -f ${FOLDER}/status-downlist.lastrun DOWNLIST report >> ${FOLDER}/status-downlist.lastrun STATUSLOG="$(cat ${FOLDER}/status-downlist.lastrun)"