From 90381aec54b776a33bbc36cae3095d4f2960893d Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Fri, 23 Mar 2018 16:37:11 +0100 Subject: [PATCH] Fix commit hook --- utils/pre-commit.hook | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils/pre-commit.hook b/utils/pre-commit.hook index b9de33f..44ed908 100755 --- a/utils/pre-commit.hook +++ b/utils/pre-commit.hook @@ -5,13 +5,15 @@ if ! npm run lint then echo "Frontend lint failed" exit 1 -failed +fi +cd .. -cd backend +cd backend/src if ! composer run-script lint then echo "Backend lint failed" exit 2 fi +cd .. exit 0 \ No newline at end of file