CI: allow meaningful error messages
- Move set -e down in the script so that the error-handling at the top (which prints meaningful error messages) isn't short-circuited by the -e.
This commit is contained in:
parent
6dfcbd757b
commit
fae1fdae1c
@ -6,8 +6,6 @@
|
||||
# You can pass in directory names, in which case the files
|
||||
# in that directory (NOT below it) are processed.
|
||||
#
|
||||
set -e
|
||||
|
||||
AS=$( which astyle )
|
||||
|
||||
for _cf in clang-format-7 clang-format-8 clang-format70 clang-format80
|
||||
@ -22,6 +20,8 @@ test -n "$CF" || { echo "! No clang-format-7 found in PATH"; exit 1 ; }
|
||||
test -x "$AS" || { echo "! $AS is not executable."; exit 1 ; }
|
||||
test -x "$CF" || { echo "! $CF is not executable."; exit 1 ; }
|
||||
|
||||
set -e
|
||||
|
||||
any_dirs=no
|
||||
for d in "$@"
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user