修复docker安装源

This commit is contained in:
lsy 2024-09-27 13:14:09 +08:00
parent d116655891
commit afc6b7025e

View File

@ -88,13 +88,13 @@ if [[ ${soft_dick['docker']} == 2 ]];then
docker_img_number[$docker_img_number_pick]=$i docker_img_number[$docker_img_number_pick]=$i
echo "${docker_img_number_pick}.${i}" echo "${docker_img_number_pick}.${i}"
done done
read -p "请选择Docker镜像站" docker_img_number_pick read -p "请选择Docker镜像站(默认 ${docker_img_number[1]})" docker_img_number_pick
declare docker_img declare docker_img
if [[ $docker_img_number_pick =~ [1-${#docker_imgs[@]}] ]];then if [[ $docker_img_number_pick =~ [1-${#docker_imgs[@]}] ]];then
docker_img_number_pick=${docker_img_number[$docker_img_number_pick]} docker_img_number_pick=${docker_img_number[$docker_img_number_pick]}
docker_img=${docker_imgs[$docker_img_number_pick]} docker_img=${docker_imgs[$docker_img_number_pick]}
else else
docker_img=${docker_imgs[1]} docker_img=${docker_imgs[${docker_img_number[1]}]}
fi fi
if [[ ${pkg} == 'apt' || ${pkg} == 'apt-get' ]];then if [[ ${pkg} == 'apt' || ${pkg} == 'apt-get' ]];then