From 180ec55f294cb928288f2984c2643b55302bb028 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 11 Aug 2018 12:11:34 +0200 Subject: [PATCH] Fix whitespace bug --- Hooks/delegator.sh | 2 +- Hooks/travis.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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