Fix: pass CLI args through exec re-launch for curl|bash usage

This commit is contained in:
bigbong420 committed 2026-03-29 11:51:33 -04:00
1 parent 229ce3a0dc
commit b77bc6cdd5
1 file changed
+2 -1
+2 -1
View File
@@ -13,6 +13,7 @@ set -e
REPO_URL="https://github.com/bigbong420/hosting.git" REPO_URL="https://github.com/bigbong420/hosting.git"
REPO_BRANCH="upgrades" REPO_BRANCH="upgrades"
ORIGINAL_ARGS=("$@")
RED='\033[0;31m' RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
@@ -121,7 +122,7 @@ if [ ! -f "$SCRIPT_DIR/install_binaries.sh" ]; then
fi fi
log_ok "Repository cloned to $SCRIPT_DIR" log_ok "Repository cloned to $SCRIPT_DIR"
# Re-exec from the cloned copy so all paths work # Re-exec from the cloned copy so all paths work
exec "$SCRIPT_DIR/install.sh" "$@" exec "$SCRIPT_DIR/install.sh" "${ORIGINAL_ARGS[@]}"
fi fi
log_ok "Repository found at $SCRIPT_DIR" log_ok "Repository found at $SCRIPT_DIR"