From 691d8216694a60f63c8ec0987b1df2b5f0fac5b8 Mon Sep 17 00:00:00 2001 From: Super Manito <68613938+SuperManito@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:06:23 +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 | 2 +- DockerInstallation.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeMirrors.sh b/ChangeMirrors.sh index 7d7ccc1..7d5a5b3 100755 --- a/ChangeMirrors.sh +++ b/ChangeMirrors.sh @@ -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 清理完毕" } ############################################################################## diff --git a/DockerInstallation.sh b/DockerInstallation.sh index e705ba3..7039413 100755 --- a/DockerInstallation.sh +++ b/DockerInstallation.sh @@ -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}"