From 6d6aa4cdb8b36eeb5a805d9f10e7cae0ca112458 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:01:24 -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 7da05303..45fde6c9 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -581,7 +581,7 @@ BACKUP_OFFSITEPFSENSE(){ ssh root@10.2.1.1 rm -f /cf/conf/conf_backup.tar.gz [ "${BackupsToKeep}" == "" ] && BackupsToKeep=2 - files=(`ls -1 ${BAKFOLDER}/* | tail -${BackupsToKeep}`) + files=(`ls -d ${BAKFOLDER}/* | tail -${BackupsToKeep}`) for i in $(ls -1 ${BAKFOLDER}/*); do echo $i keep=0