优化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

@ -13,7 +13,7 @@ use IYUU\Library\Table;
class AutoReseed
{
// 版本号
const VER = '1.7.1';
const VER = '1.7.2';
// RPC连接
private static $links = [];
// 客户端配置

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