Add temp debug

This commit is contained in:
2026-01-21 06:05:09 -05:00
parent 19628c7d18
commit 776509f038

View File

@@ -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 ERR INT
fi
}
@@ -1837,6 +1837,7 @@ main() {
echo "Updating package lists"
if ! execute "${PKG_UPDATE[@]}"; then
err "Package update failed!"
debug "MC_REPO: $MC_REPO, MC_REPO_HARDCODE: $MC_REPO_HARDCODE"
if [[ $MC_REPO != "$MC_REPO_HARDCODE" ]] &&
ask_ok "Re-run installJRMC with --mcrepo=$MC_REPO_HARDCODE?"; then
exec "$SCRIPT_PATH" "$@" "--no-update" "--mcrepo=$MC_REPO_HARDCODE"