Skip to content

fix: correct awk quoting in aiden-runner workflow version extraction#17

Merged
sks merged 1 commit into
mainfrom
copilot/create-docker-image-for-aiden-runner
May 12, 2026
Merged

fix: correct awk quoting in aiden-runner workflow version extraction#17
sks merged 1 commit into
mainfrom
copilot/create-docker-image-for-aiden-runner

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 12, 2026

Problem

The aiden-runner CI pipeline was failing with:

awk: cmd. line:1: $1 == \"version\" { print $2; exit }
awk: cmd. line:1:       ^ backslash not last character on line
Error: Failed to extract version from aiden-runner.rb

Root Cause

The awk command 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 to awk as 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.24 from aiden-runner.rb.

Copilot AI assigned Copilot and sks May 12, 2026
Copilot finished work on behalf of sks May 12, 2026 05:33
Copilot AI requested a review from sks May 12, 2026 05:33
@sks sks marked this pull request as ready for review May 12, 2026 05:44
@sks sks merged commit abaee4b into main May 12, 2026
@sks sks deleted the copilot/create-docker-image-for-aiden-runner branch May 12, 2026 05:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants