From e10cbff31c5466488201bf00d64d7da763f5b5fe Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Mon, 4 Aug 2025 11:38:42 +0200 Subject: [PATCH] test --- install/swizzin-install.sh | 2 +- misc/build.func | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install/swizzin-install.sh b/install/swizzin-install.sh index 7ef19093..aff5c85d 100644 --- a/install/swizzin-install.sh +++ b/install/swizzin-install.sh @@ -21,7 +21,7 @@ echo read -r -p "${TAB3}Do you want to continue? [y/N]: " CONFIRM if [[ ! "$CONFIRM" =~ ^([yY][eE][sS]|[yY])$ ]]; then msg_error "Aborted by user. No changes have been made." - return 10 + exit 10 fi bash <(curl -sL s5n.sh) diff --git a/misc/build.func b/misc/build.func index 62c2f73b..751bb915 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1428,7 +1428,7 @@ EOF' fi msg_ok "Customized LXC Container" - if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/$var_install.sh)"; then + if ! lxc-attach -n "$CTID" -- bash -s < <(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/$var_install.sh); then EXITCODE=$? echo "DEBUG: lxc-attach exit code was $EXITCODE" if [[ $EXITCODE -eq 10 ]]; then