diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 99ce22f7..787587ed 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -588,8 +588,7 @@ BACKUP_OFFSITEPFSENSE(){ [ "${i}" == "${a}" ] && keep=1 done; if [ $keep == 0 ]; then - if [ "$(date +%u)" == "1" ] && mv ${i} ${i}-W - rm -rf ${i} + [ "$(date +%u)" == "1" ] && mv ${i} ${i}-W || rm -rf ${i} fi done