diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 1bb9c805..366f5fd2 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -590,7 +590,7 @@ BACKUP_OFFSITEPFSENSE(){ dailyfilestokeep=(`ls -d ${BAKFOLDER}/*-D 2> /dev/null | tail -7`) weeklyfilestokeep=(`ls -d ${BAKFOLDER}/*-W 2> /dev/null | tail -4`) monthlyfilestokeep=(`ls -d ${BAKFOLDER}/*-M 2> /dev/null | tail -12`) - for i in $(ls -d ${BAKFOLDER}/*); do; keep=0 + for i in $(ls -d ${BAKFOLDER}/*); do keep=0 if [[ "${i}" == *"-D"* ]]; then filestokeep=${dailyfilestokeep[@]} elif [[ "${i}" == *"-W"* ]]; then