commit | 419c7bb7c6eb568322584d8d181dd60a9353d29a | [log] [tgz] |
---|---|---|
author | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Tue Mar 12 16:44:45 2024 +0700 |
committer | Paul Sokolovsky <paul.sokolovsky@linaro.org> | Tue Mar 12 16:46:21 2024 +0700 |
tree | 3fece32e3f516e196f703a8f0590a06027aacd7e | |
parent | b2ca65b59139ffd0cc25a650905f2aef6cc32ea9 [diff] [blame] |
static-checks-include-order.sh: Be sure to run with "set -o pipefail" Otherwise, any error from the underlying script will be swallowed by "tee" command. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org> Change-Id: I38765202b0b629c1cc783aa241619aa407e538f1
diff --git a/script/static-checks/static-checks-include-order.sh b/script/static-checks/static-checks-include-order.sh index 67089b5..ded10a2 100755 --- a/script/static-checks/static-checks-include-order.sh +++ b/script/static-checks/static-checks-include-order.sh
@@ -7,6 +7,8 @@ # unittest-include-order.sh <path-to-root-folder> [patch] +set -o pipefail + LOG_FILE=$(mktemp -t include-order-check.XXXX) if [[ "$2" == "patch" ]]; then