Tighten up output

This commit is contained in:
2025-08-01 20:43:15 -04:00
parent f2016b6b50
commit 9b9b82d1af

View File

@@ -681,7 +681,9 @@ install_mc_repo() {
# Add older repository for libwebkit2gtk-4.0-37, etc, on newer Debian/Ubuntu
if add_temp_repo; then
debug "Removing temporary repository: $TEMP_REPO_FILE"
trap 'execute sudo rm -f "$TEMP_REPO_FILE"' EXIT
echo "Removed temporary repository"
else
err "Failed to add temporary repository"
return 1
@@ -701,7 +703,11 @@ install_mc_repo() {
# Unset the trap and remove temporary legacy repository
trap - EXIT
[[ -f $TEMP_REPO_FILE ]] && execute sudo rm -f "$TEMP_REPO_FILE"
if [[ -f $TEMP_REPO_FILE ]]; then
debug "Removing temporary repository: $TEMP_REPO_FILE"
execute sudo rm -f "$TEMP_REPO_FILE"
echo "Removed temporary repository"
fi
return 0
}
@@ -1070,7 +1076,9 @@ install_mc_deb() {
# Add older repository for libwebkit2gtk-4.0-37, etc, on newer Debian/Ubuntu
if add_temp_repo; then
debug "Removing temporary repo"
trap 'execute sudo rm -f "$TEMP_REPO_FILE"' EXIT
debug "Removed temporary repo"
else
err "Failed to add temporary repository"
return 1