From f8937a869911db24a1ffbc37001dfb8f5a9c9606 Mon Sep 17 00:00:00 2001 From: Roland Rabien Date: Sat, 10 Jan 2026 15:14:34 -0800 Subject: [PATCH] Fix awk regex syntax in release.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 740d514..36a9171 100755 --- a/release.sh +++ b/release.sh @@ -9,8 +9,8 @@ VER="$GITHUB_REF_NAME" # Extract the changelog section for the current version # Matches version with optional colon, captures until the next version line or EOF NOTES=$(awk -v ver="$VER" ' - BEGIN { found=0; printing=0 } - $0 ~ "^"ver":?"$ { found=1; printing=1; next } + BEGIN { found=0; printing=0; pattern="^"ver":?$" } + $0 ~ pattern { found=1; printing=1; next } printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 } printing { print } END { if (!found) exit 1 }