diff options
author | Koen Kooi <koen.kooi@linaro.org> | 2016-03-29 17:44:28 +0200 |
---|---|---|
committer | Koen Kooi <koen.kooi@linaro.org> | 2016-03-29 17:44:28 +0200 |
commit | 00140a97c8d7f30a48116798674762bd5af64b30 (patch) | |
tree | 7fc49685e81cfdbfee61c673a7f5623a5f96551b | |
parent | e18c91f14eb4ef2cd5c285db17934c73d2d7993c (diff) |
init-and-build: propagate bitbake error codes back to caller
This should make the CI fail when the build fails instead keep on going.
Change-Id: I7a350a7cfdbcdf4e4d4d6b2f9297c26eb39cc5ef
Signed-off-by: Koen Kooi <koen.kooi@linaro.org>
-rwxr-xr-x | init-and-build.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/init-and-build.sh b/init-and-build.sh index d09760e..c91be5f 100755 --- a/init-and-build.sh +++ b/init-and-build.sh @@ -105,3 +105,8 @@ fi #bitbake gcc-cross || true bitbake $bitbake_verbose $@ +# propagate bad return codes to caller +rc=$? +if [[ $rc != 0 ]] ; then + exit $rc +fi |