summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-09-07 18:57:48 +0000
committerJosh Hoyt <josh@janrain.com>2006-09-07 18:57:48 +0000
commitf146011fb82ef8bd6eb55a50bc86abac7f7fc9a9 (patch)
treebb595a0fc9dcfabecc4c0369e26f2a382e485462
parentfd05cf9155392b8df715783c380ce26c4c8dddbd (diff)
downloadphp-openid-f146011fb82ef8bd6eb55a50bc86abac7f7fc9a9.zip
php-openid-f146011fb82ef8bd6eb55a50bc86abac7f7fc9a9.tar.gz
php-openid-f146011fb82ef8bd6eb55a50bc86abac7f7fc9a9.tar.bz2
[project @ Fix the regex in the script that checks for bad case and make it fail when it finds errors]
-rw-r--r--admin/nobadcase3
1 files changed, 2 insertions, 1 deletions
diff --git a/admin/nobadcase b/admin/nobadcase
index 41feb97..104a7af 100644
--- a/admin/nobadcase
+++ b/admin/nobadcase
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
-bad=$(./admin/findphp | xargs egrep -n "TRUE|FALSE|NULL")
+bad=$(./admin/findphp | xargs egrep -n '\b(TRUE|FALSE|NULL)\b')
if [ ! -z "$bad" ]
then
@@ -10,4 +10,5 @@ These files contain wrongly capitalized constants:
$bad
EOF
+ exit 1
fi