Update update-repo.sh

This commit is contained in:
Yu Steven
2022-07-05 08:41:27 +08:00
committed by GitHub
parent 5d0f81fde9
commit dc4c0f3d45

View File

@@ -4,5 +4,5 @@ status_log=$(git status -sb)
if [ "$status_log" == "## main...origin/main" ];then
echo -e "\033[42;30m nothing to commit, working tree clean \033[0m"
else
git pull origin main && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin main
git status -s && git pull origin main && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin main
fi