From afc6b7025e9ebec8de3559d6bb8eed9adcd48814 Mon Sep 17 00:00:00 2001 From: lsy Date: Fri, 27 Sep 2024 13:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Ddocker=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/software.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Config/software.sh b/Config/software.sh index 629913e..5352ac9 100644 --- a/Config/software.sh +++ b/Config/software.sh @@ -88,13 +88,13 @@ if [[ ${soft_dick['docker']} == 2 ]];then docker_img_number[$docker_img_number_pick]=$i echo "${docker_img_number_pick}.${i}" done - read -p "请选择Docker镜像站:" docker_img_number_pick + read -p "请选择Docker镜像站(默认 ${docker_img_number[1]}):" docker_img_number_pick declare docker_img if [[ $docker_img_number_pick =~ [1-${#docker_imgs[@]}] ]];then docker_img_number_pick=${docker_img_number[$docker_img_number_pick]} docker_img=${docker_imgs[$docker_img_number_pick]} else - docker_img=${docker_imgs[1]} + docker_img=${docker_imgs[${docker_img_number[1]}]} fi if [[ ${pkg} == 'apt' || ${pkg} == 'apt-get' ]];then