2024-09-23 01:23:05 +08:00
|
|
|
declare path_script=$1
|
2024-09-23 16:47:48 +08:00
|
|
|
declare file_name=$(basename $0)
|
2024-07-25 21:59:46 +08:00
|
|
|
echo "========Other========"
|
2024-09-23 16:47:48 +08:00
|
|
|
declare print_number=0
|
|
|
|
declare -a print_arr
|
|
|
|
declare pick
|
|
|
|
for i in "${path_script}/Config/${file_name}"/* ; do
|
|
|
|
print_number=$(( print_number+1 ))
|
|
|
|
print_arr[$print_number]=$(basename $i)
|
|
|
|
echo "${print_number}.${i}"
|
|
|
|
done
|
2024-07-25 21:59:46 +08:00
|
|
|
echo "输入其他任意返回主页"
|
|
|
|
echo "========Other========"
|
|
|
|
read -p "请输入:" pick
|
|
|
|
|
2024-09-23 16:47:48 +08:00
|
|
|
if [[ $pick =~ [1-$print_number] ]]; then
|
|
|
|
bash "${path_script}/Config/${file_name}/${print_arr[$pick]}.sh"
|
|
|
|
fi
|