Commit 38314d0e6468af5ee2ac4610670419e46479ed42
Committed by
Tom Rini
1 parent
2371d1bcbf
Exists in
smarc_8mq_lf_v2020.04
and in
17 other branches
travis.yml: fix 'set +e' in build script
The build script should not manipulate shell flags (especially '-e'). A non-zero exit value can also be catched with 'cmd || ret=$?'. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
.travis.yml
... | ... | @@ -101,9 +101,8 @@ |
101 | 101 | # |
102 | 102 | # Exit code 129 means warnings only. |
103 | 103 | - if [[ "${BUILDMAN}" != "" ]]; then |
104 | - set +e; | |
105 | - tools/buildman/buildman -P ${BUILDMAN}; | |
106 | - ret=$?; | |
104 | + ret=0; | |
105 | + tools/buildman/buildman -P ${BUILDMAN} || ret=$?; | |
107 | 106 | if [[ $ret -ne 0 && $ret -ne 129 ]]; then |
108 | 107 | tools/buildman/buildman -sdeP ${BUILDMAN}; |
109 | 108 | exit $ret; |