提交 5f3f2b28 编写于 作者: 张磊's avatar 张磊

auto commit

上级 778d6a52
#!/bin/bash #!/bin/bash
hasGit=`which git` # 判断是否存在git hasGit=`which git` # 判断是否存在git
msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit msg=${1:-'auto commit'} # 获取终端输入的第一个参数,若为空则为auto commit
originBranch = 'origin/develop' originBranch='origin/develop'
if [ ! $hasGit ];then if [ ! $hasGit ];then
echo 'Please download git first!'; echo 'Please download git first!';
exit 1; exit 1;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册