commit | 0cce848b4b4974fe2923f18f69a00335b2a74a70 | [log] [tgz] |
---|---|---|
author | Andrew Jeffery <andrew@aj.id.au> | Mon Apr 30 11:37:01 2018 +0930 |
committer | Andrew Jeffery <andrew@aj.id.au> | Mon Apr 30 15:54:35 2018 +0930 |
tree | 71c9511b5cae5fdedf242b4bb2e9f9dfc579e008 | |
parent | 88721796f31d3fa01908bc0c9539d53fd68ae150 [diff] |
scripts/format-code.sh: Immediately exit on bad exit status Shell scripts exit with the exit status of the last command if `set -e` is not in use. Adding code to the end of the script to support the local format-code.sh meant that `git --no-pager diff --exit-code` was not necessarily the last command to be executed by the script, and therefore the script's exit code did not necessarily reflect the presence of badly formatted code. Fixes openbmc/openbmc#3125 Change-Id: Icefad5b81b420c364022075face7c4027d8af4e6 Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Build script for CI jobs in Jenkins.