nobadcase 218 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. bad=$(./admin/findphp | xargs egrep -n "^[^\'\"]*\b(TRUE|FALSE|NULL)\b")
  3. if [ ! -z "$bad" ]
  4. then
  5. cat <<EOF 1>&2
  6. These files contain wrongly capitalized constants:
  7. $bad
  8. EOF
  9. exit 1
  10. fi