summaryrefslogtreecommitdiffstats
path: root/admin/nobadcase
blob: 104a7af499cd9f104bc124332113652ca4ca6f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env bash

bad=$(./admin/findphp | xargs egrep -n '\b(TRUE|FALSE|NULL)\b')

if [ ! -z "$bad" ]
    then
    cat <<EOF 1>&2
These files contain wrongly capitalized constants:

$bad

EOF
    exit 1
fi