~aleteoryx/muditaos

72992f77d9b93575d748089988f05fe50c0129cc — Adam Dobrowolski 4 years ago eec4370
[EGD-5238] Fixed no error message on bad style

With enabled fail on first error we never got to error
printing line in style check
1 files changed, 1 insertions(+), 2 deletions(-)

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