Skip to content

Commit f8937a8

Browse files
FigBugclaude
andcommitted
Fix awk regex syntax in release.sh
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 37ecc90 commit f8937a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

release.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ VER="$GITHUB_REF_NAME"
99
# Extract the changelog section for the current version
1010
# Matches version with optional colon, captures until the next version line or EOF
1111
NOTES=$(awk -v ver="$VER" '
12-
BEGIN { found=0; printing=0 }
13-
$0 ~ "^"ver":?"$ { found=1; printing=1; next }
12+
BEGIN { found=0; printing=0; pattern="^"ver":?$" }
13+
$0 ~ pattern { found=1; printing=1; next }
1414
printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 }
1515
printing { print }
1616
END { if (!found) exit 1 }

0 commit comments

Comments
 (0)