Skip to content

Commit 74f8912

Browse files
drernieclaude
andcommitted
Escape dots in bump-version.sh sed pattern
Same class of issue as the awk fix; address while reviewing PR #334. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 94d3e9e commit 74f8912

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wf/bump-version.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ case "$LEVEL" in
2626
esac
2727
NEW="${MAJOR}.${MINOR}.${PATCH}"
2828

29-
sed -i.bak "s/^version = '${OLD}'\$/version = '${NEW}'/" "$FILE"
29+
sed -i.bak "s/^version = '${OLD//./\\.}'\$/version = '${NEW}'/" "$FILE"
3030
rm "$FILE.bak"
3131

3232
cd "$ROOT"

0 commit comments

Comments
 (0)