Bash script to check the output before your Jenkins