%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /data/www_bck/varak.net_bck/ampache.varak.net/scripts/tests/
Upload File :
Create Path :
Current File : //data/www_bck/varak.net_bck/ampache.varak.net/scripts/tests/syntax.sh

#!/bin/bash

echo -e "\e[1;34mChecking syntax error\e[00m"
output=$(find . -name '*.php' -exec php --syntax-check {} \; | grep -v 'No syntax errors detected in')
if [[ $output ]]
then 
    echo -e '\e[00;31mPlease check files syntax\e[00m'
    exit 1
else 
    echo -e "\e[1;32mSyntax is OK\e[00m"
fi

Zerion Mini Shell 1.0