diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..13aeef2 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/builddir diff --git a/scripts/static-analyser-check.sh b/scripts/static-analyser-check.sh index bc7e388..0139367 100755 --- a/scripts/static-analyser-check.sh +++ b/scripts/static-analyser-check.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -exo pipefail + # Ensure we are at the project root cd "$(dirname $0)"/.. @@ -7,4 +9,4 @@ cd "$(dirname $0)"/.. ninja scan-build -C builddir | tee builddir/meson-logs/scan-build.txt # Invert the output - if this string exists it's a fail -exit ! grep -E '[0-9]+ bugs? found.' builddir/meson-logs/scan-build.txt +! grep -E '[0-9]+ bugs? found.' builddir/meson-logs/scan-build.txt