Skip to content

Commit

Permalink
优化
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperManito committed Dec 6, 2024
1 parent 494591b commit 691d821
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ChangeMirrors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -1695,7 +1696,6 @@ function upgrade_software() {
eclean-packages --deep >/dev/null 2>&1
;;
esac
echo -e "\n$COMPLETE 清理完毕"
}
##############################################################################
Expand Down
2 changes: 2 additions & 0 deletions DockerInstallation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down Expand Up @@ -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}"
Expand Down

0 comments on commit 691d821

Please sign in to comment.