优化linux下的shell脚本

This commit is contained in:
thinkgem
2018-04-14 15:19:11 +08:00
parent 7670575e32
commit 31b8e3f7fd
5 changed files with 24 additions and 15 deletions

View File

@@ -1,19 +1,27 @@
#!/usr/bin/env bash
echo "[信息] 初始化数据库,请谨慎操作。\n"
echo ""
echo "[信息] 初始化数据库,请谨慎操作。"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 此操作会清空您的现有数据表,并恢复初始状态。\n"
echo ""
echo "[信息] 此操作会清空您的现有数据表,并恢复初始状态。"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 确认继续吗否则请关闭窗口。5\n"
echo ""
echo "[信息] 确认继续吗否则请关闭窗口。5"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 您真的确认继续吗否则请关闭窗口。4\n"
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。4"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 您真的确认继续吗否则请关闭窗口。3\n"
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。3"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 您真的确认继续吗否则请关闭窗口。2\n"
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。2"
read -s -n1 -p "请按任意键继续 ... "
echo "\n[信息] 您真的确认继续吗否则请关闭窗口。1\n"
echo ""
echo "[信息] 您真的确认继续吗否则请关闭窗口。1"
read -s -n1 -p "请按任意键继续 ... "
echo ""
cd ..
mvn test -Dtest=com.jeesite.test.InitCoreData,com.jeesite.test.InitGenData -U
exec mvn test -Dtest=com.jeesite.test.InitCoreData,com.jeesite.test.InitGenData