更换源检测方法
This commit is contained in:
parent
7f412adde7
commit
efe516fd92
@ -24,11 +24,11 @@ read -p "请输入:" pick
|
|||||||
if [[ -z $pick ]];then
|
if [[ -z $pick ]];then
|
||||||
declare url='http://mirrors.ustc.edu.cn'
|
declare url='http://mirrors.ustc.edu.cn'
|
||||||
elif [[ ${pick} =~ [1-${#sources_dick[@]}] ]];then
|
elif [[ ${pick} =~ [1-${#sources_dick[@]}] ]];then
|
||||||
echo "输入错误"
|
|
||||||
exit
|
|
||||||
else
|
|
||||||
pick=${pcik_array[$pick]}
|
pick=${pcik_array[$pick]}
|
||||||
declare url=${sources_dick[$pick]}
|
declare url=${sources_dick[$pick]}
|
||||||
|
else
|
||||||
|
echo "输入错误"
|
||||||
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user