Skip to content

fix(hooks): guard strings/cat against set -e abort in pre-push#59

Merged
John-David Dalton (jdalton) merged 1 commit intomainfrom
fix/hooks-strings-binary-scanning
Apr 14, 2026
Merged

fix(hooks): guard strings/cat against set -e abort in pre-push#59
John-David Dalton (jdalton) merged 1 commit intomainfrom
fix/hooks-strings-binary-scanning

Conversation

@jdalton
Copy link
Copy Markdown
Collaborator

@jdalton John-David Dalton (jdalton) commented Apr 14, 2026

Summary

  • Add || echo "" fallback to strings and cat command substitutions in pre-push hook
  • Without this, if strings is not installed (e.g. minimal Docker/CI images), set -e silently aborts the script with exit 127, blocking the push with no message

Test plan

  • Verify pre-push hook runs without error on normal push

Add || echo "" fallback to strings and cat command substitutions.
Without this, if strings is not installed (e.g. minimal Docker/CI
images), set -e silently aborts the script with exit 127, blocking
the push with no message.
@jdalton John-David Dalton (jdalton) force-pushed the fix/hooks-strings-binary-scanning branch from de2d012 to 8b001dc Compare April 14, 2026 01:42
@jdalton John-David Dalton (jdalton) changed the title fix(hooks): use strings for binary file scanning in pre-push fix(hooks): guard strings/cat against set -e abort in pre-push Apr 14, 2026
@jdalton John-David Dalton (jdalton) merged commit 0b29a5f into main Apr 14, 2026
8 checks passed
@jdalton John-David Dalton (jdalton) deleted the fix/hooks-strings-binary-scanning branch April 14, 2026 01:48
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