From 991b0c1c695ff8228f655cecd84714f8a315539c Mon Sep 17 00:00:00 2001
From: tteckster <tteckster@gmail.com>
Date: Tue, 18 Jul 2023 04:54:43 -0400
Subject: [PATCH] Update cron-update-lxcs.sh

tweak
---
 misc/cron-update-lxcs.sh | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/misc/cron-update-lxcs.sh b/misc/cron-update-lxcs.sh
index 0c471c2c0..3cd4d9bef 100644
--- a/misc/cron-update-lxcs.sh
+++ b/misc/cron-update-lxcs.sh
@@ -16,9 +16,6 @@ cat <<"EOF"
                               /_/
 EOF
 
-set -euo pipefail
-shopt -s inherit_errexit nullglob
-
 add() {
   while true; do
     read -p "This script will add a crontab schedule that updates all LXCs every Sunday at midnight. Proceed(y/n)?" yn
@@ -35,7 +32,7 @@ add() {
 
 remove() {
   (crontab -l | grep -v "github.com/tteck/Proxmox/raw/main/misc/update-lxcs-cron.sh") | crontab -
-  rm /var/log/update-lxcs-cron.log
+  rm -rf /var/log/update-lxcs-cron.log
   echo "Removed Crontab Schedule from Proxmox VE"
 }