nolonglines 283 B

123456789101112131415
  1. #!/usr/bin/env bash
  2. files_with_long_lines=$(./admin/findphp |
  3. xargs -L 1 -I FILENAME /usr/bin/env perl admin/longlines.pl FILENAME 80)
  4. if [ "$files_with_long_lines" ]
  5. then
  6. cat <<EOF 1>&2
  7. Found lines > 80 characters in:
  8. $files_with_long_lines
  9. EOF
  10. exit 1
  11. fi