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