diff options
author | Josh Hoyt <josh@janrain.com> | 2006-09-07 18:57:48 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-09-07 18:57:48 +0000 |
commit | f146011fb82ef8bd6eb55a50bc86abac7f7fc9a9 (patch) | |
tree | bb595a0fc9dcfabecc4c0369e26f2a382e485462 | |
parent | fd05cf9155392b8df715783c380ce26c4c8dddbd (diff) | |
download | php-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/nobadcase | 3 |
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 |