read -p "请输入安装程序编号:" n
case $n in
1)
read -p "确定要安装程序吗?[Y/y]" s
if [ $s == "Y" -o $s == "y" ];then
nginx_install
else
printf "没有选择[Y/y]安装程序,程序退出!\n"
echo -e "\033[40;37m"
exit 1
fi
*)
echo "没有选择安装程序编号,程序退出!"
echo -e "\033[40;37m"
exit 1
esac
read case
最新推荐文章于 2020-06-10 17:17:30 发布