1 Star 0 Fork 2.1K

LQ-DaYuRen/OneBlog

forked from yadong.zhang/OneBlog 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cli.sh 841 Bytes
一键复制 编辑 原始数据 按行查看 历史
yadong.zhang 提交于 2021-10-25 12:15 . :alien:添加脚本
#!/bin/bash
help(){
echo "--------------------------------------------------------------------------"
echo ""
echo "usage: ./cli.sh [updv]"
echo ""
echo "-updv [version num] Update all oneblog related versions."
echo ""
echo "--------------------------------------------------------------------------"
}
case "$1" in
'updv')
docs/bin/updVersion.sh $2
;;
'b')
docs/bin/build.sh
;;
'p')
docs/bin/push.sh
;;
'dd')
read -p '是否重新执行 mvn package?[y/n]' repeat
if [ "${repeat}" = "y" -o "${repeat}" = "Y" ];then
mvn -X clean package -Dmaven.test.skip=true
STATUS=$?
if [[ $STATUS == 0 ]]; then
docs/bin/deploy-docker.sh
else
echoError "打包失败"
exit 1
fi
else
docs/bin/deploy-docker.sh
fi
;;
*)
help
esac
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/LQ814160525/DBlog.git
[email protected]:LQ814160525/DBlog.git
LQ814160525
DBlog
OneBlog
master

搜索帮助