From e5de0cebefb1ca8f94f7ab2ab63fecc3dbe5652f Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Sat, 16 Aug 2025 04:20:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChangeMirrors.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 8798e55..bea6689 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -1474,10 +1474,6 @@ function remove_original_mirrors() { case "${SYSTEM_FACTIONS}" in "${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}") - # /etc/apt/sources.list - if [[ "${SYSTEM_JUDGMENT}" != "${SYSTEM_LINUX_MINT}" && -s "${File_AptSourceList}" ]]; then - clear_file $File_AptSourceList - fi # /etc/apt/sources.list.d [ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources # Debian DEB822 格式源文件 @@ -1490,6 +1486,10 @@ function remove_original_mirrors() { clear_file $File_UbuntuSources USE_DEB822_FORMAT="true" fi + # /etc/apt/sources.list + if [[ "${USE_DEB822_FORMAT}" != "true" && "${SYSTEM_JUDGMENT}" != "${SYSTEM_LINUX_MINT}" ]]; then + [ -s "${File_AptSourceList}" ] && clear_file $File_AptSourceList + fi # Armbian [ -f "${File_ArmbianRelease}" ] && clear_file $File_ArmbianSourceList # Proxmox VE