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