Skip to content

Instantly share code, notes, and snippets.

@book000
Created March 18, 2020 16:54
Show Gist options
  • Save book000/0d21bec12065668e9bf276b09ae88e10 to your computer and use it in GitHub Desktop.
Save book000/0d21bec12065668e9bf276b09ae88e10 to your computer and use it in GitHub Desktop.
#!/bin/bash
# 特定ディレクトリ以下にある全てのPHPファイルのシンタックスチェックをする。
# Check the syntax of all PHP files under a specific directory.
DIRPATH=/
# 1 week
find $DIRPATH -name \*.php -daystart -mtime -6 -exec php -l {} \; > /dev/null 2> phplint.log
# full
# find $DIRPATH -name \*.php -exec php -l {} \; > /dev/null 2> phplint.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment