Skip to content

Commit b4ee0f2

Browse files
author
Ryan Hitchman
committed
Make sh2ju not print 'error: 0' lines.
They cause false positives on Gubernator when it's looking for error reasons.
1 parent 32ba581 commit b4ee0f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/forked/shell2junit/sh2ju.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function juLog() {
113113
H=`echo "$out" | egrep $icase "$ereg"`
114114
[ -n "$H" ] && err=1
115115
fi
116-
echo "+++ error: $err" | tee -a $outf
116+
[ $err != 0 ] && echo "+++ error: $err" | tee -a $outf
117117
rm -f $outf
118118

119119
errMsg=`cat $errf`
@@ -174,4 +174,4 @@ EOF
174174
EOF
175175
fi
176176

177-
}
177+
}

0 commit comments

Comments
 (0)