Skip to content

Commit e3b97df

Browse files
committed
Fix build:readme sed -i incompatibility on macOS
macOS sed requires a backup extension argument with -i, unlike GNU sed. Use a temp file + mv instead for cross-platform compatibility. https://claude.ai/code/session_01JCmVVCvBbxPUrxy3BcgjCc
1 parent ef1a4d5 commit e3b97df

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2424
### Fixed
2525

2626
- Bridge ignores stored OAuth access token when no refresh token is provided; servers that don't issue refresh tokens now work correctly by using the access token as a static Bearer header
27+
- `build:readme` script failing on macOS due to `sed -i` platform difference
2728
- Session incorrectly marked as `unauthorized` when access token expires but refresh token is still valid; bridge now attempts token refresh before giving up
2829
- "ESC to detach" hint now shows immediately in the spinner when using `--task`, instead of waiting for the server to return a task ID
2930

scripts/update-readme.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ echo " Done"
6666
echo "Updating table of contents..."
6767
doctoc "$README" --github --notitle --maxlevel 2
6868
# Remove mcpc: entries from TOC (internal anchors that shouldn't be in TOC)
69-
sed -i '/^- \[mcpc:/d' "$README"
69+
# Use temp file for cross-platform compatibility (macOS sed -i requires different syntax)
70+
sed '/^- \[mcpc:/d' "$README" > "$README.tmp" && mv "$README.tmp" "$README"
7071
echo " Done"
7172

7273
# Step 3: Check for broken internal links

0 commit comments

Comments
 (0)