Commit 35bb40c
committed
fix: avoid exit code 1 when output-file is not set
[[ -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>1 parent 4f968cd commit 35bb40c
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
101 | 103 | | |
0 commit comments