diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index de9968b..1b1fb9c 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -63,6 +63,7 @@ git diff --cached --name-only | while read FILE; do if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE") + echo GEN_SYNTAX if [[ $GEN_SYNTAX = 1 ]]; then echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2 diff --git a/Hooks/travis.sh b/Hooks/travis.sh index 70b563c..f06614f 100644 --- a/Hooks/travis.sh +++ b/Hooks/travis.sh @@ -13,8 +13,6 @@ echo $rootpath continue fi - echo $FILE - # Filename if [[ $(isValidFileName "$FILE") = 1 ]]; then echo -e "\e[1;31m\tInvalid file name '$FILE'.\e[0m" >&2 @@ -68,8 +66,6 @@ echo $rootpath if [[ "$FILE" =~ ^.+(sh|js|php|json|css)$ ]]; then GEN_SYNTAX=$(hasInvalidBasicSyntax "$FILE") - echo GEN_SYNTAX - exit 1 if [[ $GEN_SYNTAX = 1 ]]; then echo -e "\e[1;31m\tFound whitespace at end of line in $FILE.\e[0m" >&2