Created
March 18, 2020 16:54
-
-
Save book000/0d21bec12065668e9bf276b09ae88e10 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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