From 5f222083f58b8767b78b498e5bdebf02f5ed76cc Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 16 Jun 2025 13:07:26 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/misc/build.func b/misc/build.func index 0108ae12..5676dc47 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1034,7 +1034,13 @@ build_container() { $PW " # This executes create_lxc.sh and creates the container and .conf file - bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/ct/create_lxc.sh)" $? + CREATE_CMD="bash -c \"\$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/ct/create_lxc.sh)\"" + eval "$CREATE_CMD" + RET=$? + if [[ $RET -ne 0 ]]; then + msg_error "in line $LINENO: exit code $RET: while executing command $CREATE_CMD" + exit $RET + fi LXC_CONFIG=/etc/pve/lxc/${CTID}.conf if [ "$CT_TYPE" == "0" ]; then