Skip to content

Commit

Permalink
made error to match with word boundry so errors does not match. This …
Browse files Browse the repository at this point in the history
…is there to make sure build fails if provided SparkBuild has compile errors.
  • Loading branch information
ScrapCodes committed Apr 4, 2014
1 parent 7fffdf2 commit f865951
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/scalastyle
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
#

echo -e "q\n" | sbt/sbt clean scalastyle > scalastyle.txt
ERRORS=$(cat scalastyle.txt | grep -e "error")
ERRORS=$(cat scalastyle.txt | grep -e "\<error\>")
if test ! -z "$ERRORS"; then
echo -e "Scalastyle checks failed at following occurrences:\n$ERRORS"
exit 1
Expand Down

0 comments on commit f865951

Please sign in to comment.