Revert use download() for piped re-exec

This commit is contained in:
2026-01-21 06:34:51 -05:00
parent 536123eef9
commit 869e0995dd

View File

@@ -1848,7 +1848,7 @@ main() {
echo "Rerunning installJRMC with --mcrepo=$MC_REPO_HARDCODE" echo "Rerunning installJRMC with --mcrepo=$MC_REPO_HARDCODE"
if ((SCRIPT_IS_PIPED)); then if ((SCRIPT_IS_PIPED)); then
# Re-download and execute if script was piped # Re-download and execute if script was piped
download "$SCRIPT_URL" | bash -s -- "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE" curl -fsSL "$SCRIPT_URL" | bash -s -- "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE"
exit $? exit $?
else else
exec bash "$SCRIPT_PATH" "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE" exec bash "$SCRIPT_PATH" "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE"