Skip to content

Commit e0236ef

Browse files
authored
Exclude Filemanager folder
1 parent dcbf715 commit e0236ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/check_php.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ if [ ! -d $current ] && [ ! -f $current ] ; then
1616
fi
1717

1818
echo "Checking PHP files..."
19-
for file in `find $current -type f -name "*.php"` ; do
19+
for file in `find $current -type f -name "*.php" -not -path "${current}fm/*"` ; do
2020
RESULTS=`php -l -n $file`
2121

2222
if [ "$RESULTS" != "No syntax errors detected in $file" ] ; then
@@ -26,7 +26,7 @@ for file in `find $current -type f -name "*.php"` ; do
2626
done
2727

2828
echo "Checking HTML/PHP combined files..."
29-
for file in `find $current -type f -name "*.html"` ; do
29+
for file in `find $current -type f -name "*.html" -not -path "${current}fm/*"` ; do
3030
RESULTS=`php -l -n $file`
3131

3232
if [ "$RESULTS" != "No syntax errors detected in $file" ] ; then
@@ -39,4 +39,4 @@ if [ "$error" = true ] ; then
3939
exit 1
4040
else
4141
exit 0
42-
fi
42+
fi

0 commit comments

Comments
 (0)