From c64fbde87dc3a00020bfd13557fdb12df59a24e7 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:08:41 -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 ca758c65..be4c8ea9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -582,7 +582,7 @@ BACKUP_OFFSITEPFSENSE(){ [ "${BackupsToKeep}" == "" ] && BackupsToKeep=2 files=(`ls -d ${BAKFOLDER}/* | tail -${BackupsToKeep}`) - for i in $(ls -1 ${BAKFOLDER}/*); do + for i in $(ls -d ${BAKFOLDER}/*); do keep=0 for a in ${files[@]}; do echo "'$i'='$a'"