%PDF- %PDF-
Direktori : /data/www_bck/varak.net_bck/ampache.varak.net/scripts/tests/ |
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