mirror of
https://github.com/taixingyiji/openit.git
synced 2026-10-20 09:27:41 +00:00
Update update-repo.sh
This commit is contained in:
1 parent
7c83ba0f03
commit
7db78e08ca
1 file changed
+1
-1
@@ -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 path && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin path
|
||||
git pull origin main && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin main
|
||||
fi
|
||||
Reference in new issue
Block a user