Skip to content

Commit

Permalink
Fix a minor bug in lint-r check
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaram committed Aug 28, 2015
1 parent ff733d2 commit 4758a87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dev/lint-r
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ fi

`which Rscript` --vanilla "$SPARK_ROOT_DIR/dev/lint-r.R" "$SPARK_ROOT_DIR" | tee "$LINT_R_REPORT_FILE_NAME"

NUM_LINES=`wc -l < "$LINT_R_REPORT_FILE_NAME"`
NUM_LINES=`wc -l < "$LINT_R_REPORT_FILE_NAME" | awk '{print $1}'`
if [ "$NUM_LINES" = "0" ] ; then
lint_status=0
echo "lintr checks passed."
Expand Down

0 comments on commit 4758a87

Please sign in to comment.