mirror of
https://gitee.com/SuperManito/LinuxMirrors
synced 2025-11-08 10:20:27 +08:00
优化
This commit is contained in:
@@ -1036,6 +1036,7 @@ function choose_mirrors() {
|
||||
fi
|
||||
|
||||
if [[ "${CAN_USE_ADVANCED_INTERACTIVE_SELECTION}" == "true" ]]; then
|
||||
sleep 1 >/dev/null 2>&1
|
||||
eval "interactive_select_mirror \"\${${mirror_list_name}[@]}\" \"\\n \${BOLD}请选择你想使用的软件源:\${PLAIN}\\n\""
|
||||
SOURCE="${_SELECT_RESULT#*@}"
|
||||
echo -e "\n${GREEN}➜${PLAIN} ${BOLD}${_SELECT_RESULT%@*}${PLAIN}" | sed "s| · | |g"
|
||||
@@ -1695,7 +1696,6 @@ function upgrade_software() {
|
||||
eclean-packages --deep >/dev/null 2>&1
|
||||
;;
|
||||
esac
|
||||
echo -e "\n$COMPLETE 清理完毕"
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
|
||||
@@ -542,6 +542,7 @@ function choose_mirrors() {
|
||||
if [[ -z "${SOURCE}" ]]; then
|
||||
mirror_list_name="mirror_list_docker_ce"
|
||||
if [[ "${CAN_USE_ADVANCED_INTERACTIVE_SELECTION}" == "true" ]]; then
|
||||
sleep 1 >/dev/null 2>&1
|
||||
eval "interactive_select_mirror \"\${${mirror_list_name}[@]}\" \"\\n \${BOLD}请选择你想使用的 Docker CE 源:\${PLAIN}\\n\""
|
||||
SOURCE="${_SELECT_RESULT#*@}"
|
||||
echo -e "\n${GREEN}➜${PLAIN} ${BOLD}${_SELECT_RESULT%@*}${PLAIN}"
|
||||
@@ -571,6 +572,7 @@ function choose_mirrors() {
|
||||
if [[ -z "${SOURCE_REGISTRY}" ]]; then
|
||||
mirror_list_name="mirror_list_registry"
|
||||
if [[ "${CAN_USE_ADVANCED_INTERACTIVE_SELECTION}" == "true" ]]; then
|
||||
sleep 1 >/dev/null 2>&1
|
||||
eval "interactive_select_mirror \"\${${mirror_list_name}[@]}\" \"\\n \${BOLD}请选择你想使用的 Docker Registry 源:\${PLAIN}\\n\""
|
||||
SOURCE_REGISTRY="${_SELECT_RESULT#*@}"
|
||||
echo -e "\n${GREEN}➜${PLAIN} Docker Registry:${BOLD}${_SELECT_RESULT%@*}${PLAIN}"
|
||||
|
||||
Reference in New Issue
Block a user