Make sh2ju not print 'error: 0' lines.

They cause false positives on Gubernator when it's looking for error
reasons.
pull/6/head
Ryan Hitchman 2016-09-16 12:22:11 -07:00
parent 32ba5815ee
commit b4ee0f22d0
1 changed files with 2 additions and 2 deletions

View File

@ -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
EOF EOF
fi fi
} }