diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 6e943cbb..3afc923d 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -599,8 +599,7 @@ BACKUP_OFFSITEPFSENSE(){ elif [[ "${i}" == *"-M"* ]]; then filestokeep=${monthlyfilestokeep[@]} fi - echo ${!filestokeep} - for a in ${!filestokeep}; do + for a in ${filestokeep}; do [ "${i}" == "${a}" ] && keep=1 done; [ $keep == 0 ] && rm -rf ${i}