Skip to content

Fix: capture /capabilities apply exit code under bash -e - #62

Merged
madhuchavva merged 1 commit into
mainfrom
fix/capabilities-bash-e
Aug 12, 2026
Merged

Fix: capture /capabilities apply exit code under bash -e#62
madhuchavva merged 1 commit into
mainfrom
fix/capabilities-bash-e

Conversation

@madhuchavva

Copy link
Copy Markdown
Contributor

The apply step ran under GitHub's default bash -e, so the apply script's intentional non-zero exits (2 = version-only, 3 = unknown caps) aborted the step before it could branch on the code. Guard the call with || code=$?.

Verified locally under bash -e: empty → code 2, unknown → code 3 (no mutation), valid → code 0 (sets capabilities), step exit 0 in all cases.

Merge to main so the next /capabilities test picks it up.

@madhuchavva
madhuchavva merged commit 6d213f2 into main Aug 12, 2026
1 check failed
@madhuchavva
madhuchavva deleted the fix/capabilities-bash-e branch August 12, 2026 20:06
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.

1 participant