We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a43a3 commit b8e07d4Copy full SHA for b8e07d4
2 files changed
php-check
@@ -1,6 +1,10 @@
1
#!/bin/sh
2
3
-[[ "$1" = "recent" ]] && ADDITONAL_OPTIONS="-mmin -240"
+if [ "$1" = "recent" ]; then
4
+ ADDITONAL_OPTIONS="-mmin -240"
5
+else
6
+ ADDITONAL_OPTIONS=""
7
+find
8
9
find . $ADDITONAL_OPTIONS -name "*.php" -print0 | xargs -0 -n1 -P10 php -l | grep -v 'No syntax errors'
10
ruby-check
+fi
find . $ADDITONAL_OPTIONS -name "*.rb" -print0 | xargs -0 -n1 -P10 ruby -c | grep -v 'Syntax OK'
0 commit comments