1
0
Fork 0
mirror of https://github.com/vbatts/go-mtree.git synced 2025-09-13 13:53:20 +00:00
go-mtree/cmd/gomtree
Aleksa Sarai 23151ae80f
gomtree: return exit status != 0 on error
This was broken during the refactor for "gomtree validate" in commit
83c9fdb78b ("refactor: prefactor for adding new subcommands"),
resulting in any code that relied on our exit code to silently treat all
errors as non-fatal.

Our tests did not catch this due to a quirky POSIX-ism with regards to
"! cmd" and "set -e" which is fixed in a follow-up patch.

Fixes: 83c9fdb78b ("refactor: prefactor for adding new subcommands")
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
2025-09-08 23:52:51 +10:00
..
cmd *: begin incorporating the "validate" subcommand 2023-10-24 10:25:18 -04:00
main.go gomtree: return exit status != 0 on error 2025-09-08 23:52:51 +10:00