Use sudo to remove jammy repo file

This commit is contained in:
2025-04-24 18:44:01 -04:00
parent a98f3cf994
commit 0379c8d4f0

View File

@@ -1041,13 +1041,13 @@ install_mc_deb() {
--reinstall \
"$MC_DEB"; then
err "Local MC DEB installation failed"
((remove_jammy)) && execute rm -f "$repo_file"
((remove_jammy)) && execute sudo rm -f "$repo_file"
if ask_ok "Remove source DEB and retry"; then
execute rm -f "$MC_DEB"
exec "$SCRIPT_PATH" "$@" "--no-update"
fi
fi
((remove_jammy)) && execute rm -f "$repo_file"
((remove_jammy)) && execute sudo rm -f "$repo_file"
}
# @description Installs MC via RPM package