Commit b4ee0f22 authored by Ryan Hitchman's avatar Ryan Hitchman

Make sh2ju not print 'error: 0' lines.

They cause false positives on Gubernator when it's looking for error reasons.
parent 32ba5815
...@@ -113,7 +113,7 @@ function juLog() { ...@@ -113,7 +113,7 @@ function juLog() {
H=`echo "$out" | egrep $icase "$ereg"` H=`echo "$out" | egrep $icase "$ereg"`
[ -n "$H" ] && err=1 [ -n "$H" ] && err=1
fi fi
echo "+++ error: $err" | tee -a $outf [ $err != 0 ] && echo "+++ error: $err" | tee -a $outf
rm -f $outf rm -f $outf
errMsg=`cat $errf` errMsg=`cat $errf`
...@@ -174,4 +174,4 @@ EOF ...@@ -174,4 +174,4 @@ EOF
EOF EOF
fi fi
} }
\ No newline at end of file
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