~aleteoryx/muditaos

61ebd9e83ff103d58b04cec316261e17d83a99f8 — Adam Dobrowolski 4 years ago 182f694
[EGD-5238] Revert Fixed no error message on bad style

This reverts commit 72992f77d9b93575d748089988f05fe50c0129cc.
1 files changed, 2 insertions(+), 1 deletions(-)

M config/style_check_hook.sh
M config/style_check_hook.sh => config/style_check_hook.sh +2 -1
@@ 147,7 147,8 @@ 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