notabs 320 B

1234567891011121314151617
  1. #!/usr/bin/env bash
  2. #
  3. # Look in the local directory for PHP files that have tabs in them. If
  4. # there are files with tabs, print the list of files and exit with
  5. # non-zero status.
  6. tabs=$(./admin/findphp | xargs egrep -n ' ' | sort)
  7. if [ ! -z "$tabs" ]
  8. then
  9. cat <<EOF 1>&2
  10. Found tabs in:
  11. $tabs
  12. EOF
  13. exit 1
  14. fi