Commit 5fb6109d authored by Philipp Steinpass's avatar Philipp Steinpass
Browse files

Script now works even when all quotas are met and everything is fine.

parent e329209c
......@@ -11,10 +11,11 @@ while read -r line; do
if [[ $line == "" ]] ;then
#Remove last \n
OUTPUT=${CRITOUTPUT}${WARNOUTPUT}
#Remove last lines of output if it exists and print it.
if [ -n "$OUTPUT" ]; then
OUTPUT=${OUTPUT::-2}
#Print Output
echo -e $OUTPUT
fi
#Set apropriet exit code
if [ -n "$CRITOUTPUT" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment