Skip to content

Commit 0d2b39a

Browse files
committed
Correct bash -c exit handling
1 parent 71c04d9 commit 0d2b39a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

misc/build.func

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ build_container() {
820820
$PW
821821
"
822822
# This executes create_lxc.sh and creates the container and .conf file
823-
bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/create_lxc.sh)" || exit
823+
bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/create_lxc.sh || echo exit $?)" || exit
824824

825825
LXC_CONFIG=/etc/pve/lxc/${CTID}.conf
826826
if [ "$CT_TYPE" == "0" ]; then
@@ -882,7 +882,7 @@ http://dl-cdn.alpinelinux.org/alpine/latest-stable/community
882882
EOF'
883883
pct exec "$CTID" -- ash -c "apk add bash >/dev/null"
884884
fi
885-
lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/$var_install.sh)" || exit
885+
lxc-attach -n "$CTID" -- bash -c "$(wget -qLO - https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/install/$var_install.sh || echo exit $?)" || exit
886886

887887
}
888888

0 commit comments

Comments
 (0)