gamemode/scripts/static-analyser-check.sh
2019-05-19 12:47:32 +01:00

14 lines
264 B
Bash
Executable File

#!/bin/bash
# Exit on failure
set -e
# Build directly
cd build/
# Collect scan-build output
ninja scan-build | 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