File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -23,14 +23,23 @@ PEP8_REPORT_PATH="$SPARK_ROOT_DIR/dev/pep8-report.txt"
23
23
24
24
cd $SPARK_ROOT_DIR
25
25
26
- # See: https://github.com/apache/spark/pull/1744#issuecomment-50982162
27
26
# Get pep8 at runtime so that we don't rely on it being installed on the build server.
28
- # TODOs:
29
- # - Dynamically determine latest release version of pep8 and use that.
30
- # - Download this from a more reliable source. (GitHub raw can be flaky, apparently. (?))
27
+ # + See: https://github.com/apache/spark/pull/1744#issuecomment-50982162
28
+ # + TODOs:
29
+ # + - Dynamically determine latest release version of pep8 and use that.
30
+ # + - Download this from a more reliable source. (GitHub raw can be flaky, apparently. (?))
31
31
PEP8_SCRIPT_PATH=" $SPARK_ROOT_DIR /dev/pep8.py"
32
- curl --silent -o " $PEP8_SCRIPT_PATH " \
33
- " https://raw.githubusercontent.com/jcrocholl/pep8/1.5.7/pep8.py"
32
+ PEP8_SCRIPT_REMOTE_PATH=" https://raw.githubusercontent.com/jcrocholl/pep8/1.5.7/pep8.py"
33
+
34
+ curl --silent -o " $PEP8_SCRIPT_PATH " " $PEP8_SCRIPT_REMOTE_PATH "
35
+ curl_status=$?
36
+
37
+ if [ $curl_status -ne 0 ]
38
+ then
39
+ echo " Failed to download pep8.py from \" $PEP8_SCRIPT_REMOTE_PATH \" ."
40
+ exit $curl_status
41
+ fi
42
+
34
43
35
44
# There is no need to write this output to a file
36
45
# + first, but we do so so that the check status can
You can’t perform that action at this time.
0 commit comments