From 2ccd4f8318a3557e4851a9186dac912ee6cdc7ad Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 30 Jun 2025 13:47:14 +0200 Subject: [PATCH] Update lxc-delete.sh --- tools/pve/lxc-delete.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/pve/lxc-delete.sh b/tools/pve/lxc-delete.sh index 290f97d0..45d1b67b 100644 --- a/tools/pve/lxc-delete.sh +++ b/tools/pve/lxc-delete.sh @@ -40,8 +40,10 @@ CM="${TAB}✔️${TAB}${CL}" header_info echo "Loading..." -whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE LXC Deletion" --yesno "This will delete LXC containers. Proceed?" 10 58 - +if ! whiptail --backtitle "Proxmox VE Helper Scripts" --title "Proxmox VE LXC Deletion" --yesno "This will delete LXC containers. Proceed?" 10 58; then + echo -e "${RD}Aborted by user.${CL}" + exit 0 +fi NODE=$(hostname) containers=$(pct list | tail -n +2 | awk '{print $0 " " $4}')