将脚本执行都换成绝对路径

This commit is contained in:
lsy 2024-09-21 16:28:01 +08:00
parent e563b33517
commit 134963d530

2
Run.sh
View File

@ -25,7 +25,7 @@ echo "======Linux工具箱======"
read -p "请输入要使用的功能:" pick
if [[ "${pick}" -gt 0 && "${pick}" -le "${#pick_array[*]}" ]];then
clear
bash "${path_script}/Menus/${pick_array[$pick]}.sh ${path_script}"
bash "${path_script}/Menus/${pick_array[$pick]}.sh" "$path_script"
else
exit
fi