优化git_pull.sh脚本:自动拉取最新代码,然后执行辅种脚本。

This commit is contained in:
iyuu.cn
2020-03-25 13:49:38 +08:00
parent e02d32b129
commit e201505dca
2 changed files with 4 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
#!/bin/sh
#脚本功能从git拉取最新代码然后执行辅种
cd $(dirname $0)
git fetch --all
git reset --hard origin/master
git pull
php ./iyuu.php