mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 14:00:47 +02:00
Fix awk regex syntax in release.sh
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
37ecc904c7
commit
f8937a8699
1 changed files with 2 additions and 2 deletions
|
|
@ -9,8 +9,8 @@ VER="$GITHUB_REF_NAME"
|
||||||
# Extract the changelog section for the current version
|
# Extract the changelog section for the current version
|
||||||
# Matches version with optional colon, captures until the next version line or EOF
|
# Matches version with optional colon, captures until the next version line or EOF
|
||||||
NOTES=$(awk -v ver="$VER" '
|
NOTES=$(awk -v ver="$VER" '
|
||||||
BEGIN { found=0; printing=0 }
|
BEGIN { found=0; printing=0; pattern="^"ver":?$" }
|
||||||
$0 ~ "^"ver":?"$ { found=1; printing=1; next }
|
$0 ~ pattern { found=1; printing=1; next }
|
||||||
printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 }
|
printing && /^[0-9]+\.[0-9]+\.[0-9]+:?$/ { printing=0 }
|
||||||
printing { print }
|
printing { print }
|
||||||
END { if (!found) exit 1 }
|
END { if (!found) exit 1 }
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue