mirror of
				https://gitee.com/SuperManito/LinuxMirrors
				synced 2025-11-04 08:20:28 +08:00 
			
		
		
		
	优化
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
## Author: SuperManito
 | 
					## Author: SuperManito
 | 
				
			||||||
## Modified: 2025-07-24
 | 
					## Modified: 2025-07-26
 | 
				
			||||||
## License: MIT
 | 
					## License: MIT
 | 
				
			||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
 | 
					## GitHub: https://github.com/SuperManito/LinuxMirrors
 | 
				
			||||||
## Website: https://linuxmirrors.cn
 | 
					## Website: https://linuxmirrors.cn
 | 
				
			||||||
@@ -1767,7 +1767,7 @@ function change_mirrors_main() {
 | 
				
			|||||||
            if [[ -z "${exec_cmd}" ]]; then
 | 
					            if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                exec_cmd="${cmd}"
 | 
					                exec_cmd="${cmd}"
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
        echo ''
 | 
					        echo ''
 | 
				
			||||||
@@ -2024,7 +2024,7 @@ $(gen_deb822_disabled_source "${1}" "${2}-proposed" "${3}")"
 | 
				
			|||||||
        esac
 | 
					        esac
 | 
				
			||||||
    fi
 | 
					    fi
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    local deb_source_title="## 默认禁用源码镜像以提高速度,如需启用请自行取消注释"
 | 
					    local deb_source_title="## 默认禁用源码镜像以提高更新速度,如需启用请自行取消注释"
 | 
				
			||||||
    local repository_sections # 仓库区域
 | 
					    local repository_sections # 仓库区域
 | 
				
			||||||
    local source_host="${SOURCE}/${SOURCE_BRANCH}"
 | 
					    local source_host="${SOURCE}/${SOURCE_BRANCH}"
 | 
				
			||||||
    local source_host_security=""
 | 
					    local source_host_security=""
 | 
				
			||||||
@@ -2561,7 +2561,7 @@ deb ${WEB_PROTOCOL}://${1}/ ${2}-updates ${3}
 | 
				
			|||||||
    fi
 | 
					    fi
 | 
				
			||||||
    local repository_sections="main cross pty" # 仓库区域
 | 
					    local repository_sections="main cross pty" # 仓库区域
 | 
				
			||||||
    local source_host="${SOURCE}/${SOURCE_BRANCH}"
 | 
					    local source_host="${SOURCE}/${SOURCE_BRANCH}"
 | 
				
			||||||
    echo "## 默认禁用源码镜像以提高速度,如需启用请自行取消注释
 | 
					    echo "## 默认禁用源码镜像以提高更新速度,如需启用请自行取消注释
 | 
				
			||||||
$(gen_deb_source "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")" >>$File_AptSourceList
 | 
					$(gen_deb_source "${source_host}" "${SYSTEM_VERSION_CODENAME}" "${repository_sections}")" >>$File_AptSourceList
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,6 @@
 | 
				
			|||||||
#!/bin/bash
 | 
					#!/bin/bash
 | 
				
			||||||
## Author: SuperManito
 | 
					## Author: SuperManito
 | 
				
			||||||
## Modified: 2025-07-18
 | 
					## Modified: 2025-07-26
 | 
				
			||||||
## License: MIT
 | 
					## License: MIT
 | 
				
			||||||
## GitHub: https://github.com/SuperManito/LinuxMirrors
 | 
					## GitHub: https://github.com/SuperManito/LinuxMirrors
 | 
				
			||||||
## Website: https://linuxmirrors.cn
 | 
					## Website: https://linuxmirrors.cn
 | 
				
			||||||
@@ -891,7 +891,7 @@ function install_dependency_packages() {
 | 
				
			|||||||
            if [[ -z "${exec_cmd}" ]]; then
 | 
					            if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                exec_cmd="${cmd}"
 | 
					                exec_cmd="${cmd}"
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
        echo ''
 | 
					        echo ''
 | 
				
			||||||
@@ -930,7 +930,7 @@ function install_dependency_packages() {
 | 
				
			|||||||
            if [[ -z "${exec_cmd}" ]]; then
 | 
					            if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                exec_cmd="${cmd}"
 | 
					                exec_cmd="${cmd}"
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
        echo ''
 | 
					        echo ''
 | 
				
			||||||
@@ -1005,7 +1005,7 @@ function configure_docker_ce_mirror() {
 | 
				
			|||||||
            if [[ -z "${exec_cmd}" ]]; then
 | 
					            if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                exec_cmd="${cmd}"
 | 
					                exec_cmd="${cmd}"
 | 
				
			||||||
            else
 | 
					            else
 | 
				
			||||||
                exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
            fi
 | 
					            fi
 | 
				
			||||||
        done
 | 
					        done
 | 
				
			||||||
        animate_exec "${exec_cmd}" "${SYNC_MIRROR_TEXT}"
 | 
					        animate_exec "${exec_cmd}" "${SYNC_MIRROR_TEXT}"
 | 
				
			||||||
@@ -1159,7 +1159,7 @@ function install_docker_engine() {
 | 
				
			|||||||
                if [[ -z "${exec_cmd}" ]]; then
 | 
					                if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                    exec_cmd="${cmd}"
 | 
					                    exec_cmd="${cmd}"
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
                    exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                    exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
                fi
 | 
					                fi
 | 
				
			||||||
            done
 | 
					            done
 | 
				
			||||||
            animate_exec "${exec_cmd}" "安装 Docker Engine"
 | 
					            animate_exec "${exec_cmd}" "安装 Docker Engine"
 | 
				
			||||||
@@ -1337,7 +1337,7 @@ function only_change_docker_registry_mirror() {
 | 
				
			|||||||
                    if [[ -z "${exec_cmd}" ]]; then
 | 
					                    if [[ -z "${exec_cmd}" ]]; then
 | 
				
			||||||
                        exec_cmd="${cmd}"
 | 
					                        exec_cmd="${cmd}"
 | 
				
			||||||
                    else
 | 
					                    else
 | 
				
			||||||
                        exec_cmd="${exec_cmd} && ${cmd}"
 | 
					                        exec_cmd="${exec_cmd} ; ${cmd}"
 | 
				
			||||||
                    fi
 | 
					                    fi
 | 
				
			||||||
                done
 | 
					                done
 | 
				
			||||||
                echo ''
 | 
					                echo ''
 | 
				
			||||||
 
 | 
				
			|||||||
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 58 KiB After Width: | Height: | Size: 73 KiB  | 
										
											Binary file not shown.
										
									
								
							| 
		 Before Width: | Height: | Size: 62 KiB After Width: | Height: | Size: 76 KiB  | 
		Reference in New Issue
	
	Block a user