diff --git a/Hooks/syntax.sh b/Hooks/syntax.sh index 12df4d6..097ae09 100644 --- a/Hooks/syntax.sh +++ b/Hooks/syntax.sh @@ -71,8 +71,6 @@ isValidBashScript() { } hasInvalidBasicSyntax() { - echo 3 - echo $1 # Check whitespace end of line in code if [[ -n $(grep -P ' $' "$1") ]]; then return 1 diff --git a/Hooks/travis.sh b/Hooks/travis.sh index f06614f..cf60204 100644 --- a/Hooks/travis.sh +++ b/Hooks/travis.sh @@ -66,6 +66,7 @@ echo $rootpath 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