From 536123eef96529b3f1fcef6a4b2130973bfd2746 Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 21 Jan 2026 06:33:53 -0500 Subject: [PATCH] Use download() for piped re-exec --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 0ee15be..d605240 100755 --- a/installJRMC +++ b/installJRMC @@ -21,7 +21,7 @@ # shellcheck disable=SC2329 shopt -s extglob -declare -g SCRIPT_VERSION="1.35.7" +declare -g SCRIPT_VERSION="1.35.8-dev" declare -g MC_VERSION_HARDCODE="35.0.37" # do find all replace declare -g MC_REPO_HARDCODE="bookworm" # should match the MC_VERSION_HARDCODE declare -g BOARD_ID="92.0" # MC35 board ID for fallback latest version detection @@ -1848,7 +1848,7 @@ main() { echo "Rerunning installJRMC with --mcrepo=$MC_REPO_HARDCODE" if ((SCRIPT_IS_PIPED)); then # Re-download and execute if script was piped - curl -fsSL "$SCRIPT_URL" | bash -s -- "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE" + download "$SCRIPT_URL" | bash -s -- "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE" exit $? else exec bash "$SCRIPT_PATH" "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE"