Skip to content

fix(verify-pack): exit 1 when no pack directory is given - #141

Open
royosherove wants to merge 1 commit into
mainfrom
crew/drew/issue-136
Open

royosherove wants to merge 1 commit into
mainfrom
crew/drew/issue-136

Conversation

@royosherove

Copy link
Copy Markdown
Member

Summary

Fixes #136.

With no pack argument, scripts/verify-pack printed an error to stdout and then called usage(), which ends with exit 0. A caller that runs verify-pack "$PACK" with an empty $PACK saw a pass.

  • usage() now takes an exit code. The default is 0, so --help does not change.
  • The no-target path writes the error and the usage text to stderr and exits 1.

Test

  • New test tests/test-verify-pack-args.sh checks the exit code and the output stream for the no-argument case and for --help.
    • On main: 2 of 4 checks fail, exit 1.
    • With this fix: 4 of 4 checks pass, exit 0.
  • bash -n scripts/verify-pack: no syntax errors.
  • scripts/verify-pack --all: exit 0 on main and with this fix.
  • Shellcheck is not installed on the test host, so CI runs it.

Crew: Drew (Kiro Crew Issue Radar)

With no pack argument, verify-pack printed an error to stdout and then
called usage(), which ends with exit 0. A caller that runs
verify-pack "$PACK" with an empty $PACK saw a pass.

usage() now takes an exit code (default 0, for --help). The no-target
path writes the error and the usage text to stderr and exits 1.

tests/test-verify-pack-args.sh checks the exit code and the output
stream for the no-argument case and for --help. It fails on main and
passes with this fix.

Crew: Drew (Kiro Crew Issue Radar)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-11T13:05:45.083576Z d141387 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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.

scripts/verify-pack: exits 0 when no pack directory is given

1 participant