From 20d606ac94d9462e034ba8a285ca4705ddb200b3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 24 Aug 2023 20:42:05 -0500 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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