fix: correct awk quoting in aiden-runner workflow version extraction#17
Merged
Merged
Conversation
Agent-Logs-Url: https://github.com/stackgenhq/homebrew-stackgen/sessions/e9338a7c-8342-4938-93f1-94c6ed2b32f8 Co-authored-by: sks <570239+sks@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
aiden-runnerCI pipeline was failing with:Root Cause
The
awkcommand used\"inside a single-quoted bash string:VERSION="$(awk '$1 == \"version\" { print $2; exit }' aiden-runner.rb | tr -d '\"')"In bash, single quotes suppress all escape processing — the
\"is passed literally toawkas a backslash followed by a double-quote, which awk cannot parse.Fix
Remove the backslashes so the double-quotes are passed correctly to awk (single quotes in bash make interior double-quotes entirely safe):
VERSION="$(awk '$1 == "version" { print $2; exit }' aiden-runner.rb | tr -d '"')"Verified locally: the corrected command correctly extracts
0.1.24fromaiden-runner.rb.