Commit 5bd6350
committed
script/cibuild: make trailing whitespace check fatal
We currently intend for our CI check for trailing whitespace to be
fatal; that is, if any trailing whitespace is present, our CI script
should fail.
However, currently that doesn't work, since apparently set -e is not
concerned with a negated pipeline having a nonzero exit code. To make
things more robust, let's make this into an if statement and exit 1 if
we match any files (that is, if grep returns 0).
Note that this used to work because it was the last command in the file,
but it no longer does for the above reason.1 parent 29859cd commit 5bd6350
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments