diff --git a/Hooks/delegator.sh b/Hooks/delegator.sh index de26336..de9968b 100644 --- a/Hooks/delegator.sh +++ b/Hooks/delegator.sh @@ -38,7 +38,7 @@ git diff --cached --name-only | while read FILE; do # Syntax if [[ "$FILE" =~ ^.+(php)$ ]]; then - PHP_SYNTAX = $(hasInvalidPhpSyntax "$FILE") + PHP_SYNTAX=$(hasInvalidPhpSyntax "$FILE") if [[ $PHP_SYNTAX = 1 ]]; then echo -e "\e[1;31m\tPhp linting error.\e[0m" >&2 diff --git a/Hooks/travis.sh b/Hooks/travis.sh index b37f5ee..f06614f 100644 --- a/Hooks/travis.sh +++ b/Hooks/travis.sh @@ -41,7 +41,7 @@ echo $rootpath # Syntax if [[ "$FILE" =~ ^.+(php)$ ]]; then - PHP_SYNTAX = $(hasInvalidPhpSyntax "$FILE") + PHP_SYNTAX=$(hasInvalidPhpSyntax "$FILE") if [[ $PHP_SYNTAX = 1 ]]; then echo -e "\e[1;31m\tPhp linting error.\e[0m" >&2