From 2c578cc3b67beda46457e4ffea1bb74153e7000d Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Fri, 23 Feb 2024 09:43:17 +0100 Subject: [PATCH] fix(install): return right exit codes 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 https://github.com/anchore/syft/pull/2664 . Signed-off-by: Stefan Hacker --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 63f8ee4c62e..623b0045723 100755 --- a/install.sh +++ b/install.sh @@ -695,5 +695,6 @@ set +u if [ -z "${TEST_INSTALL_SH}" ]; then set -u main "$@" + exit $? fi -set -u \ No newline at end of file +set -u