Update lxc-delete.sh

This commit is contained in:
CanbiZ 2025-06-30 13:54:59 +02:00
parent 2ccd4f8318
commit 5e3ccb265f

View File

@ -65,7 +65,7 @@ while read -r container; do
[[ "$protected" == "1" ]] && is_protected="Yes" [[ "$protected" == "1" ]] && is_protected="Yes"
formatted_line=$(printf "$FORMAT" "$container_name" "$container_status" "$container_os" "$is_protected") formatted_line=$(printf "$FORMAT" "$container_name" "$container_status" "$container_os" "$is_protected")
menu_items+=("$container_id" "$formatted_line" "OFF") menu_items+=("$container_id" "$formatted_line" "OFF")
done <<<"$containers" done < <(printf '%s\n' "$containers")
CHOICES=$(whiptail --title "LXC Container Delete" \ CHOICES=$(whiptail --title "LXC Container Delete" \
--checklist "Select LXC containers to delete:\n\nNAME STATUS OS PROTECTED" 25 70 15 \ --checklist "Select LXC containers to delete:\n\nNAME STATUS OS PROTECTED" 25 70 15 \