Skip to content

Instantly share code, notes, and snippets.

@AndyNovo
Last active November 30, 2016 16:45
Show Gist options
  • Save AndyNovo/0f13ea18fc16e6c1973ac46e89b3e9e4 to your computer and use it in GitHub Desktop.
Save AndyNovo/0f13ea18fc16e6c1973ac46e89b3e9e4 to your computer and use it in GitHub Desktop.
#!/bin/sh
n_errs=`flawfinder -DQ *.c *.cpp | wc -l`
if [ "$n_errs" = "0" ]; then
exit 0
else
echo "Houston we have a problem"
exit 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment