fix error check in the gogenerate Travis task

This commit is contained in:
Marten Seemann
2020-08-05 11:25:00 +07:00
parent c88ce801ac
commit cc638819fd

View File

@@ -20,7 +20,7 @@ if [ ${TESTMODE} == "gogenerate" ]; then
find . -type f -name "*.go" -exec shasum {} \; > checksums_after.txt
DIFF=`diff checksums_before.txt checksums_after.txt`
echo $DIFF
if [ ! -z "$var" ]; then
if [ -n "$DIFF" ]; then
exit 1
fi
fi