gnu-social/vendor/openid/php-openid/admin/open_tag
Diogo Cordeiro 2a06261f75 [CORE][COMPOSER] Move extlib packages with immediate composer correspondent to composer dependencies
This adds a composer.json for all dependencies that are available
2019-08-03 17:47:24 +01:00

18 lines
264 B
Bash

#!/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