aboutsummaryrefslogtreecommitdiff
path: root/models/openid-php-openid-782224d/admin/open_tag
blob: 27fe1c5c598e52836165426c59efd0329297f91d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env bash

bad_files=$(./admin/findphp |
      xargs -L 1 grep -H -m 1 "<?php" -c |
      grep ":0" |
      awk -F: '{ print $1 }')

if [ "$bad_files" ]
    then
    cat <<EOF 1>&2
These PHP files do NOT begin with <?php :

$bad_files

EOF
    exit 1
fi