We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb18d11 commit a46cb12Copy full SHA for a46cb12
selfcheck.sh
@@ -1,6 +1,11 @@
1
#!/bin/sh
2
3
-output=$(./simplecpp simplecpp.cpp -e 2>&1)
+output=$(./simplecpp simplecpp.cpp -e -f 2>&1)
4
ec=$?
5
-echo "$output" | grep -v 'Header not found: <'
6
-exit $ec
+errors=$(echo "$output" | grep -v 'Header not found: <')
+if [ $ec -ne 0 ]; then
7
+ # only fail if got errors which do not refer to missing system includes
8
+ if [ ! -z "$errors" ]; then
9
+ exit $ec
10
+ fi
11
+fi
0 commit comments