fix(claude-config): guard --input against missing value in fix-plugin-drift.sh - #3629
Conversation
…-drift.sh A bare --input as the final argument dereferenced $2 under set -u, crashing with exit 1 instead of the documented usage error. Guard the option-argument read so a missing value exits 2 with a usage message, matching the script's other argument-validation errors. Fixes #3430 Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Claude finished @kyle-sexton's task in 28s —— View job Security review: no findings
Skip gate applied: this PR has no security-relevant surface. The change ( No security issues found. |
|
Last security-reviewed head: |
|
Claude finished @kyle-sexton's task in 1m 5s —— View job Code review complete
Summary: Reviewed both changed files against
No correctness, maintainability, or test-coverage issues found. The PR body's verification steps (manual repro, affected-tests run) are author-claimed; I did not independently re-run them in this lane, but static review of the added guard and test is sufficient to confirm the fix is correct and complete. |
|
Claude has reviewed this PR 2 times. The lane skips further automatic reviews after 5; deleting this comment resets the count. |
Add a new ## [0.40.25] heading rather than reusing the published 0.40.24 version while fix-plugin-drift.sh changed. Co-authored-by: ksextonmelodic <ksextonmelodic@gmail.com>
|
Claude finished @cursor[bot]'s task in 25s —— View job Code review skipped
Skip gate applied: this PR is already merged, not open. Per For reference, this PR was already reviewed twice while open (security review: no findings; code review: no correctness/maintainability issues found — see prior comments above). |
Closes #3430
Summary
A bare
--inputas the final argument tofix-plugin-drift.shdereferenced$2underset -u, crashing with exit 1 instead of the documented usage error.Fix
Guard the
--inputoption-argument read: when no value follows, print a usage message to stderr and exit 2, matching the script's other argument-validation errors.Verification
bash plugins/claude-config/skills/audit/scripts/fix-plugin-drift.sh --inputnow exits 2 withMissing value for --inputon stderr.fix-plugin-drift.test.sh.scripts/affected-tests.sh --run: all 4 selected suites passed.Related
N/A