Skip to content

Commit

Permalink
fix(install): return right exit codes
Browse files Browse the repository at this point in the history
As the main function was not the last command, it did always
return a zero status code. Exiting right after main allows us to
return the actual return code instead.

Analogous to anchore/syft#2664 .

Signed-off-by: Stefan Hacker <mail@hacst.net>
  • Loading branch information
hacst committed Feb 23, 2024
1 parent d43208c commit 2c578cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -695,5 +695,6 @@ set +u
if [ -z "${TEST_INSTALL_SH}" ]; then
set -u
main "$@"
exit $?
fi
set -u
set -u

0 comments on commit 2c578cc

Please sign in to comment.