Skip to content

Commit bc086c2

Browse files
committed
fix: 修复sync脚本日志异常
1 parent 21d12e6 commit bc086c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/sync

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ if [ "$current_branch" = "main" ]; then
2121
# 推送到每个远程仓库
2222
for repoName in "${remoteList[@]}"
2323
do
24-
echo "-->Pushing to $repoName in master branch..."
24+
echo "-->Pushing to $repoName in $current_branch branch..."
2525
git push "$repoName" main
2626
done
2727
# next分支同步
2828
elif [ "$current_branch" = "next" ]; then
2929
for repoName in "${remoteList[@]}"
3030
do
31-
echo "-->Pushing to $repoName in next branch..."
31+
echo "-->Pushing to $repoName in $current_branch branch..."
3232
git push "$repoName" next
3333
done
3434
else

0 commit comments

Comments
 (0)