mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-05 00:40:27 +08:00
优化
This commit is contained in:
@@ -1474,10 +1474,6 @@ function remove_original_mirrors() {
|
|||||||
|
|
||||||
case "${SYSTEM_FACTIONS}" in
|
case "${SYSTEM_FACTIONS}" in
|
||||||
"${SYSTEM_DEBIAN}" | "${SYSTEM_OPENKYLIN}")
|
"${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
|
# /etc/apt/sources.list.d
|
||||||
[ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources
|
[ -d "${Dir_AptAdditionalSources}" ] || mkdir -p $Dir_AptAdditionalSources
|
||||||
# Debian DEB822 格式源文件
|
# Debian DEB822 格式源文件
|
||||||
@@ -1490,6 +1486,10 @@ function remove_original_mirrors() {
|
|||||||
clear_file $File_UbuntuSources
|
clear_file $File_UbuntuSources
|
||||||
USE_DEB822_FORMAT="true"
|
USE_DEB822_FORMAT="true"
|
||||||
fi
|
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
|
# Armbian
|
||||||
[ -f "${File_ArmbianRelease}" ] && clear_file $File_ArmbianSourceList
|
[ -f "${File_ArmbianRelease}" ] && clear_file $File_ArmbianSourceList
|
||||||
# Proxmox VE
|
# Proxmox VE
|
||||||
|
|||||||
Reference in New Issue
Block a user