File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 1717# limitations under the License.
1818#
1919
20- echo -e " q\n" | build/sbt -Pkinesis-asl -Phive -Phive-thriftserver scalastyle > scalastyle.txt
21- echo -e " q\n" | build/sbt -Pkinesis-asl -Phive -Phive-thriftserver test:scalastyle >> scalastyle.txt
20+ mkdir -p target
21+ OUTPUT=" target/scalastyle.txt"
22+ echo -e " q\n" | build/sbt -Pkinesis-asl -Phive -Phive-thriftserver scalastyle > " $OUTPUT "
23+ echo -e " q\n" | build/sbt -Pkinesis-asl -Phive -Phive-thriftserver test:scalastyle >> " $OUTPUT "
2224# Check style with YARN built too
23- echo -e " q\n" | build/sbt -Pkinesis-asl -Pyarn -Phadoop-2.2 scalastyle >> scalastyle.txt
24- echo -e " q\n" | build/sbt -Pkinesis-asl -Pyarn -Phadoop-2.2 test:scalastyle >> scalastyle.txt
25+ echo -e " q\n" | build/sbt -Pkinesis-asl -Pyarn -Phadoop-2.2 scalastyle >> " $OUTPUT "
26+ echo -e " q\n" | build/sbt -Pkinesis-asl -Pyarn -Phadoop-2.2 test:scalastyle >> " $OUTPUT "
2527
26- ERRORS=$( cat scalastyle.txt | awk ' {if($1~/error/)print}' )
27- mkdir -p target
28- rm -f target/scalastyle.txt
29- mv scalastyle.txt target/
28+ ERRORS=$( cat " $OUTPUT " | awk ' {if($1~/error/)print}' )
3029
3130if test ! -z " $ERRORS " ; then
3231 echo -e " Scalastyle checks failed at following occurrences:\n$ERRORS "
You can’t perform that action at this time.
0 commit comments