From 16b6f1e7cd2a47a7f0eabfa7873c02ddce86629b Mon Sep 17 00:00:00 2001 From: bryan Date: Wed, 21 Jan 2026 05:57:48 -0500 Subject: [PATCH] Don't run trap on ERR --- installJRMC | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/installJRMC b/installJRMC index 2b2bd5c..420bc2f 100755 --- a/installJRMC +++ b/installJRMC @@ -21,7 +21,7 @@ # shellcheck disable=SC2329 shopt -s extglob -declare -g SCRIPT_VERSION="1.35.6" +declare -g SCRIPT_VERSION="1.35.7-dev" declare -g MC_VERSION_HARDCODE="35.0.27" # 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 @@ -646,7 +646,7 @@ install_legacy_repo() { EOF # Set a trap to always cleanup legacy repo # shellcheck disable=SC2064 - trap "sudo rm -f $temp_repo_file" EXIT ERR INT + trap "sudo rm -f $temp_repo_file" EXIT fi }