Don't run trap on ERR

This commit is contained in:
2026-01-21 05:57:48 -05:00
parent c55a970f5b
commit 16b6f1e7cd

View File

@@ -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
}