Skip to content

Commit e07b083

Browse files
author
gclm
committed
feat(发布 v1.1.1 版本): 更新日志
1. 优化tomcat安装脚本
1 parent 62f3ce7 commit e07b083

File tree

1 file changed

+2
-30
lines changed

1 file changed

+2
-30
lines changed

include/tomcat.sh

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,8 @@ tomcat_uninstall(){
2727
}
2828

2929
main(){
30-
clear
31-
echo -e "
32-
1.${Font_color_suffix} 安装 Tomcat7
33-
2.${Font_color_suffix} 安装 Tomcat8
34-
3.${Font_color_suffix} 安装 Tomcat9
35-
0.${Font_color_suffix} 退出脚本
36-
——————————————————————————————————————" && echo
37-
read -p " 请输入选项 :" num
38-
case "$num" in
39-
0)
40-
exit 1
41-
;;
42-
1)
43-
version=7.0.100
44-
tomcat
45-
;;
46-
2)
47-
version=8.5.53
48-
tomcat
49-
;;
50-
3)
51-
version=9.0.34
52-
tomcat
53-
;;
54-
*)
55-
echo -e "${Error}:请输入正确选项:"
56-
sleep 3s
57-
main
58-
;;
59-
esac
30+
version=7.0.100
31+
tomcat
6032
}
6133

6234
main

0 commit comments

Comments
 (0)