优化git自动更新sh脚本,防止因手动更改文件导致更新失败。

This commit is contained in:
iyuu.cn 2020-03-01 13:38:37 +08:00
parent 9a39306990
commit 755bb1d526

View File

@ -1,3 +1,5 @@
#!/bin/sh
cd /root/IYUUAutoReseed
git fetch --all
git reset --hard origin/master
git pull