#!/bin/bash
echo "Running security check"

bundle exec brakeman -q -o /tmp/brakeman.tabs || exit 1

cat /tmp/brakeman.tabs

cat bin/ci/103_security_ignore.txt | perl -pe 's/#.*$//'|grep -E '.' | perl -e '$_=join"|",<>;s/\n//;chomp;print"grep -vE \"".$_."\"  /tmp/brakeman.tabs\n"' | sh | grep -E . | wc -l

exit `cat bin/ci/103_security_ignore.txt | perl -pe 's/#.*$//'|grep -E '.' | perl -e '$_=join"|",<>;s/\n//;chomp;print"grep -vE \"".$_."\"  /tmp/brakeman.tabs\n"' | sh | grep -E . | wc -l`

#!/bin/bash
echo "Running security check"

bundle exec brakeman -q -o /tmp/brakeman.tabs || exit 1

cat /tmp/brakeman.tabs

exit `cat bin/ci/103_security_ignore.txt | perl -pe 's/#.*$//'|grep -E '.' | perl -e '$_=join"|",<>;s/\n//;chomp;print"grep -vE \"".$_."\"  /tmp/brakeman.tabs\n"' | sh | grep -E . | wc -l`

Revert "debug why brakeman isn't breaking the build"
Revert "debug why brakeman isn't breaking the build"

This reverts commit ff186245dce91ab3af6a5e4e95dae4e93a0e853b.
