2020-03-06 11:54:38

This commit is contained in:
monlor
2020-03-06 11:54:39 +08:00
parent 76f69f247e
commit d54c894dc0
4 changed files with 16 additions and 12 deletions

View File

@@ -116,11 +116,15 @@ deploy() {
sed -Ei "s#mbfiles/git/raw/[a-z]+#mbfiles/git/raw/$2#" $1/install.sh
cd $1
git init
git config --local user.email "monlor@qq.com"
git config --local user.name "monlor"
git add .
git commit -m "$(TZ='Asia/Shanghai' date "+%Y-%m-%d %H:%M:%S")" -a
if [ ! -d ".git" ]; then
git init
git config --local user.email "monlor@qq.com"
git config --local user.name "monlor"
fi
if git status &> /dev/null; then
git add .
git commit -m "$(TZ='Asia/Shanghai' date "+%Y-%m-%d %H:%M:%S")" -a
fi
git push "$3" master:"$2" -f
}