mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 07:37:21 +02:00

Use the -C option instead of changing the dir, change the build folder to builddir. Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
11 lines
248 B
Bash
Executable File
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
|
|
|