aboutsummaryrefslogtreecommitdiff
path: root/models/openid-php-openid-782224d/admin/nobadcase
blob: c2c2662377ed5a390363a3e3333a4d1e14c1e8e4 (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