Fix whitespace bug

This commit is contained in:
Dennis Eichhorn 2018-08-11 12:11:34 +02:00
parent 4c672a7ada
commit 180ec55f29
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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