mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
bc464f8930
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.
12 lines
144 B
Bash
Executable file
12 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
|