fix(sync): 变量后紧跟中文时用 定界(macOS bash 3.2 会把高位字节吞进变量名)

This commit is contained in:
qiqi committed 2026-11-16 18:35:55 +08:00
1 parent ed3234b277
commit 80a1e3b48c
1 file changed
+3 -3
+3 -3
View File
@@ -73,7 +73,7 @@ case "$MODE" in
git -c user.name=qiqi -c user.email=qiqi@local commit -q \
-m "chore(sync): 重放桌面侧差异到上游 $(git rev-parse --short "$NEW")"
echo ""
echo "同步完成,改动已提交在 sync/$STAMP。核对后执行:$0 --finish"
echo "同步完成,改动已提交在 sync/${STAMP}。核对后执行:$0 --finish"
fi
exit 0
;;
@@ -88,8 +88,8 @@ case "$MODE" in
fi
TARGET="${TARGET_BRANCH:-main}"
git checkout -q "$TARGET"
git -c user.name=qiqi -c user.email=qiqi@local merge --no-ff -m "chore(sync): 合入 $CUR(上游 $(git rev-parse --short "$REMOTE/$BRANCH"))" "$CUR"
git tag -f "$BASE_TAG" HEAD~0 >/dev/null # 基线标记前移到本次合并提交
git -c user.name=qiqi -c user.email=qiqi@local merge --no-ff -m "chore(sync): 合入 ${CUR}(上游 $(git rev-parse --short "$REMOTE/$BRANCH"))" "$CUR"
git tag -f "$BASE_TAG" HEAD >/dev/null # 基线标记前移到本次合并提交
git rev-parse "$REMOTE/$BRANCH" | tr -d '\n' > .upstream-base
git add .upstream-base
git -c user.name=qiqi -c user.email=qiqi@local commit -q -m "chore(sync): 上游基线推进到 $(git rev-parse --short "$REMOTE/$BRANCH")"