From 63d77444e0cb9d20083db0760942919c928b8a41 Mon Sep 17 00:00:00 2001 From: Stefan Hacker Date: Thu, 22 Feb 2024 18:41:24 +0100 Subject: [PATCH] fix(install): actually return right error codes Previously exit was called with the stdout content of the main function. This did not make sense and resulted in the script not returning the expected exit codes when main returned a non-zero code. Strangely enough this broken code was introduced in response to #1566 but I do not see how it ever worked unless the script used to echo its intended exit code. Signed-off-by: Stefan Hacker --- install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 9d49f9c8cb2..f5680271eac 100755 --- a/install.sh +++ b/install.sh @@ -694,6 +694,7 @@ main() ( set +u if [ -z "${TEST_INSTALL_SH}" ]; then set -u - exit $(main "$@") + main "$@" + exit $? fi set -u \ No newline at end of file