From bfbd5673e8598d5f309378573b6919b5c91cdab0 Mon Sep 17 00:00:00 2001 From: lsy Date: Fri, 27 Sep 2024 13:20:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=A0=E9=99=A4=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E7=9A=84=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Config/Automation/manage.sh | 7 +++++-- Config/software.sh | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Config/Automation/manage.sh b/Config/Automation/manage.sh index 2b8aefd..c3990b1 100644 --- a/Config/Automation/manage.sh +++ b/Config/Automation/manage.sh @@ -21,7 +21,7 @@ case $pick in if [[ $i == "${path}/*" ]];then echo "该地址不存在脚本" fi - echo $i + basename $i done ;; '2') @@ -33,8 +33,11 @@ case $pick in echo "该地址不存在脚本" exit fi - script_number=$(( script_number+1 )) 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}" script_arr[$script_number]=$script_name done diff --git a/Config/software.sh b/Config/software.sh index 5352ac9..a7aef30 100644 --- a/Config/software.sh +++ b/Config/software.sh @@ -88,7 +88,7 @@ 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[1]}):" docker_img_number_pick + read -p "请选择Docker镜像站(默认 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]}