#!/usr/bin/env bash bad_true=$(grep -l "TRUE" $(find Auth Tests -name \*.php | grep -v darcs)) bad_false=$(grep -l "FALSE" $(find Auth Tests -name \*.php | grep -v darcs)) bad_null=$(grep -l "NULL" $(find Auth Tests -name \*.php | grep -v darcs)) if [ "$bad_true" ] then cat <&2 These files contain TRUE tokens: $bad_true EOF fi if [ "$bad_false" ] then cat <&2 These files contain FALSE tokens: $bad_false EOF fi if [ "$bad_null" ] then cat <&2 These files contain NULL tokens: $bad_null EOF fi if [[ "$bad_true" || "$bad_false" || "$bad_null" ]] then exit 1 fi