pdnsmanager/utils/pre-commit.hook
2018-03-23 16:37:11 +01:00

19 lines
209 B
Bash
Executable file

#!/bin/bash
cd frontend
if ! npm run lint
then
echo "Frontend lint failed"
exit 1
fi
cd ..
cd backend/src
if ! composer run-script lint
then
echo "Backend lint failed"
exit 2
fi
cd ..
exit 0