gamemode/scripts/static-analyser-check.sh
Stephan Lachnit 115f1ecdbd meson: use builddir instead of build
Use the -C option instead of changing the dir, change the build folder to builddir.

Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
2020-05-19 16:35:00 +01:00

11 lines
248 B
Bash
Executable File

#!/bin/bash
# Exit on failure
set -e
# Collect scan-build output
ninja scan-build -C builddir | tee /tmp/scan-build-results.txt
# Invert the output - if this string exists it's a fail
! grep -E '[0-9]+ bugs? found.' /tmp/scan-build-results.txt