You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
file_error="sintaxe_error"
|
|
|
|
path_file=$(find /var/www/html/aplicativo/ -type f |grep -E ".*\.php$")
|
|
|
|
|
|
|
|
echo > $file_error
|
|
|
|
|
|
|
|
for file in $path_file
|
|
|
|
do
|
|
|
|
php -lf $file > /dev/null 2>> $file_error
|
|
|
|
|
|
|
|
done
|
|
|
|
|
|
|
|
echo "----> $file_error"
|
|
|
|
cat $file_error
|
|
|
|
echo
|
|
|
|
|