Update update-repo.sh

This commit is contained in:
Yu Steven authored and GitHub committed 2022-07-02 21:01:55 +08:00
1 parent 7426024e6f
commit 0580f64617
1 file changed
+1 -1
+1 -1
View File
@@ -4,5 +4,5 @@ status_log=$(git status -sb)
if [ "$status_log" == "## main...origin/main" ];then if [ "$status_log" == "## main...origin/main" ];then
echo -e "\033[42;30m nothing to commit, working tree clean \033[0m" echo -e "\033[42;30m nothing to commit, working tree clean \033[0m"
else else
git pull origin main && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin main git pull origin path && git add . && git commit -m "$(date '+%Y.%m.%d %H:%M:%S') 更新订阅" && git push origin path
fi fi