Fix debug output

This commit is contained in:
Dennis Eichhorn 2018-12-01 21:43:06 +01:00
parent fd626b7c6b
commit b409bdd2c0
2 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ for FILE in $(git diff --cached --name-only); do
if [[ $PHP_SYNTAX = 2 ]]; then
echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2
$(php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE")
php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE"
exit 1
fi

View File

@ -49,7 +49,7 @@ for FILE in $(git diff --cached --name-only); do
if [[ $PHP_SYNTAX = 2 ]]; then
echo -e "\e[1;31m\tCode Sniffer error.\e[0m" >&2
$(php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE")
php -d memory_limit=4G ${rootpath}/vendor/bin/phpcs --standard="${rootpath}/Build/Config/phpcs.xml" --encoding=utf-8 -n -p "$FILE"
exit 1
fi