Skip to content

fix: avoid exit code 1 when output-file is not set#57

Merged
benner merged 1 commit into
mainfrom
fix/action-output-file-exit-code
Apr 26, 2026
Merged

fix: avoid exit code 1 when output-file is not set#57
benner merged 1 commit into
mainfrom
fix/action-output-file-exit-code

Conversation

@benner
Copy link
Copy Markdown
Owner

@benner benner commented Apr 26, 2026

[[ -n "" ]] && ... short-circuits with exit code 1, which the shell
interprets as a failure under set -e. Use an if block so the script
always exits with commit-guard's own exit code.

[[ -n "" ]] && ... short-circuits with exit code 1, which the shell
interprets as a failure under set -e. Use an if block so the script
always exits with commit-guard's own exit code.

Signed-off-by: Nerijus Bendžiūnas <nerijus.bendziunas@gmail.com>
@benner benner marked this pull request as ready for review April 26, 2026 10:15
@benner benner merged commit 064132b into main Apr 26, 2026
4 checks passed
@benner benner deleted the fix/action-output-file-exit-code branch April 26, 2026 10:15
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