From 7ca9214599f17a4d2dec3a1801a3aa169884b00b Mon Sep 17 00:00:00 2001 From: MickLesk <47820557+MickLesk@users.noreply.github.com> Date: Tue, 3 Nov 2026 10:23:07 +0100 Subject: [PATCH] Do not abort execute-lxcs on a container that is not Debian or Ubuntu The skip message printed $name, which is only set once a container has run the command. When a non-Debian container (Alpine, for example) came before any Debian one, set -u ended the run there with "name: unbound variable" and exit 1; later it printed the previous container's name. --- tools/pve/execute.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pve/execute.sh b/tools/pve/execute.sh index 41e4dcacf..69ea75453 100644 --- a/tools/pve/execute.sh +++ b/tools/pve/execute.sh @@ -67,7 +67,7 @@ for container in $(pct list | awk '{if(NR>1) print $1}'); do else os=$(pct config "$container" | awk '/^ostype/ {print $2}') if [ "$os" != "debian" ] && [ "$os" != "ubuntu" ]; then - echo -e "${BL}[Info]${GN} Skipping ${name} ${RD}$container is not Debian or Ubuntu ${CL}" + echo -e "${BL}[Info]${GN} Skipping ${RD}$container is not Debian or Ubuntu ${CL}" continue fi