From 02a8dfa1e9f4aefec7d820c475ed4486f7173408 Mon Sep 17 00:00:00 2001 From: Adam Dobrowolski Date: Wed, 28 Apr 2021 08:11:58 +0200 Subject: [PATCH] [EGD-5238] Fixed no error message on bad style Fixed no error information on style --- config/style_check_hook.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/config/style_check_hook.sh b/config/style_check_hook.sh index d40b9d84815460b36de238a3a7dd35f9663598a6..1f29af00eaf5b86f56a39e535083d53daa5614bc 100755 --- a/config/style_check_hook.sh +++ b/config/style_check_hook.sh @@ -147,8 +147,7 @@ declare -A results EXIT_CODE=0 for file in ${FILES}; do if [[ ${file} =~ ^.*\.(cpp|hpp|c|h|cxx|gcc|cc)$ ]] && shouldnt_ignore ${file}; then - check_file "${file}" ${LAST} - RESULT=$? + check_file "${file}" ${LAST} || RESULT=$? if [[ ${RESULT} -eq 1 ]]; then EXIT_CODE=1 fi