From beaa9ac5154ec13c0067ada286327a615022bd59 Mon Sep 17 00:00:00 2001 From: Nicholas Chammas Date: Sun, 3 Aug 2014 00:05:33 -0400 Subject: [PATCH] [SPARK-2627] fail check on non-zero status --- dev/lint-python | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/lint-python b/dev/lint-python index 7a79644038d7d..3105e64d33d4b 100755 --- a/dev/lint-python +++ b/dev/lint-python @@ -30,7 +30,7 @@ pep8 ./python --exclude="cloudpickle.py" \ > "$PEP8_REPORT_PATH" pep8_status=${PIPESTATUS[0]} #$? -if [ $pep8_status ] +if [ $pep8_status -ne 0 ] then echo "PEP8 checks failed." cat "$PEP8_REPORT_PATH"