Clobber repo files (more automatic)

This commit is contained in:
2025-07-11 20:38:12 -04:00
parent 1e1e7e3792
commit ce2b1e70c6

View File

@@ -672,9 +672,8 @@ install_mc_repo() {
;;
esac
if [[ -f $repo_file ]]; then
ask_ok "Replace existing $repo_file repository file" && execute sudo rm -f "$repo_file"
fi
# Remove existing repository file if it exists
[[ -f $repo_file ]] && execute sudo rm -f "$repo_file"
echo "Adding MC repository file: $repo_file"
debug "$repo_text"