Ghost/.github/hooks/pre-push
Naz bc464f8930 Fixed file permissions on pre-push hook
refs 002cf5b0eb

- The hook file has to be executable to be triggered in the pre-push stage:

hint: The '.git/hooks/pre-push' hook was ignored because it's not set as executable.
2022-05-05 22:09:44 +08:00

13 lines
144 B
Bash
Executable File

#!/bin/bash
yarn lint
lintStatus=$?
if [ $lintStatus -eq 0 ]
then
echo "linting succeeded"
exit 0
else
echo "linting failed"
exit 1
fi