修复删除脚本的提示
This commit is contained in:
parent
afc6b7025e
commit
bfbd5673e8
@ -21,7 +21,7 @@ case $pick in
|
|||||||
if [[ $i == "${path}/*" ]];then
|
if [[ $i == "${path}/*" ]];then
|
||||||
echo "该地址不存在脚本"
|
echo "该地址不存在脚本"
|
||||||
fi
|
fi
|
||||||
echo $i
|
basename $i
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
'2')
|
'2')
|
||||||
@ -33,8 +33,11 @@ case $pick in
|
|||||||
echo "该地址不存在脚本"
|
echo "该地址不存在脚本"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
script_number=$(( script_number+1 ))
|
|
||||||
script_name=$(awk -F '.' '{print $1}' <<< "$(basename $i)")
|
script_name=$(awk -F '.' '{print $1}' <<< "$(basename $i)")
|
||||||
|
if [[ $script_name == "linuxtool" ]]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
script_number=$(( script_number+1 ))
|
||||||
echo "${script_number}.${script_name}"
|
echo "${script_number}.${script_name}"
|
||||||
script_arr[$script_number]=$script_name
|
script_arr[$script_number]=$script_name
|
||||||
done
|
done
|
||||||
|
@ -88,7 +88,7 @@ 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[1]}):" docker_img_number_pick
|
read -p "请选择Docker镜像站(默认 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]}
|
||||||
|
Loading…
Reference in New Issue
Block a user