k98kurz

phplint

Dec 29th, 2020 (edited)
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.26 KB | None | 0 0
  1. #!/bin/bash
  2. # (C) Jonathan Voss 2020
  3. # ISC/copyleft license
  4.  
  5. dothing() {
  6.         find . -name '*.php' -exec php -l {} \; | grep "Parse"
  7. }
  8.  
  9. if [ ! -z $1 ]; then
  10.         pushd $1 >/dev/null
  11.         dothing
  12.         popd >/dev/null
  13. else
  14.         dothing
  15. fi
  16.  
Add Comment
Please, Sign In to add comment