mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-28 05:14:12 +03: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.
13 lines
144 B
Bash
Executable File
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
|