check_python_script: Output all errors before exiting. Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
diff --git a/.github/travis/check_python_script.sh b/.github/travis/check_python_script.sh index 90ec67a..f86b802 100755 --- a/.github/travis/check_python_script.sh +++ b/.github/travis/check_python_script.sh
@@ -38,14 +38,14 @@ for file in $ERROR_FILES_SHEBANG; do echo "ERROR: $file does not have the python3 shebang." done - exit 1 fi if [ ! -z "$ERROR_FILES_UTF_CODING" ]; then for file in $ERROR_FILES_UTF_CODING; do echo "ERROR: $file does not have the utf encoding set." done +fi +echo +if [ ! -z "${ERROR_FILES_SHEBANG}${ERROR_FILES_UTF_CODING}" ]; then exit 1 fi - -echo