diff options
author | Fedja Beader <fedja@protonmail.ch> | 2023-09-10 13:33:28 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2023-09-10 13:33:28 +0200 |
commit | 3f68449293de30d84e39fef761ca5a4734f99c32 (patch) | |
tree | b42fdeb4d513d47e2a1602f1b57876c7dc25317c /tools/ci/jobs/clang_tidy.sh | |
parent | 1999cc4ec6a8d14730edb3c98dbf72011fce9ba6 (diff) | |
download | plus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.gz plus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.bz2 plus-3f68449293de30d84e39fef761ca5a4734f99c32.tar.xz plus-3f68449293de30d84e39fef761ca5a4734f99c32.zip |
Reduce number of grep invocations + prettify + wrap param expansion in quotes
Diffstat (limited to 'tools/ci/jobs/clang_tidy.sh')
-rwxr-xr-x | tools/ci/jobs/clang_tidy.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/ci/jobs/clang_tidy.sh b/tools/ci/jobs/clang_tidy.sh index 0c50d90fa..9e83cbcdf 100755 --- a/tools/ci/jobs/clang_tidy.sh +++ b/tools/ci/jobs/clang_tidy.sh @@ -18,11 +18,12 @@ check_error $? cd .. grep "warning:" logs/clang_tidy.txt \ -| grep -v "/src/unittests/doctest.h" \ -| grep -v "/src/unittests/catch.hpp" \ -| grep -v "/src/sdl2gfx/" \ -| grep -v "/src/debug/" \ ->${ERRFILE} + | grep -v \ + -e "/src/unittests/doctest.h" \ + -e "/src/unittests/catch.hpp" \ + -e "/src/sdl2gfx/" \ + -e "/src/debug/" \ + ">${ERRFILE}" run_check_warnings |