Cleaner debug output

This commit is contained in:
Juan Ignacio Sánchez Lara 2015-08-11 14:20:38 +02:00
parent bd46796bb7
commit 1915e28a0f

View File

@ -48,12 +48,12 @@ function sql() {
ERROR_OUTPUT=`cat "${ERROR_OUTPUT_FILE}"` ERROR_OUTPUT=`cat "${ERROR_OUTPUT_FILE}"`
rm ${ERROR_OUTPUT_FILE} rm ${ERROR_OUTPUT_FILE}
echo -n "- Code Result: " echo -n "> Code Result: "
echo ${CODERESULT} echo -n ${CODERESULT}
echo -n "- Result: " echo -n "; Result: "
echo ${RESULT} echo -n ${RESULT}
echo -n "- Error output: " echo -n "; Error output: "
echo ${ERROR_OUTPUT} echo -n ${ERROR_OUTPUT}
# Some warnings should actually be failures # Some warnings should actually be failures
if [[ ${CODERESULT} == "0" ]] if [[ ${CODERESULT} == "0" ]]
@ -67,13 +67,12 @@ function sql() {
echo -n "FAILED BECAUSE OF PRIVILEGES REVOKING WARNING" echo -n "FAILED BECAUSE OF PRIVILEGES REVOKING WARNING"
CODERESULT=1 CODERESULT=1
;; ;;
*) echo "All ok" ;; *) ;;
esac esac
fi fi
echo "- New code result: " echo -n "; New code result: "
echo ${CODERESULT} echo ${CODERESULT}
echo "-------------"
if [[ ${CODERESULT} -ne 0 ]] if [[ ${CODERESULT} -ne 0 ]]
then then