gecko-dev/tools/git/git-lint-commit-hook.sh
Mark Banner 72059d82da Bug 1360595 - Add a git pre-commit hook for running ESLint. r=mossop
MozReview-Commit-ID: 1YJL5Sd4dlb

--HG--
rename : tools/mercurial/eslintvalidate.py => tools/lint/eslint/hook_helper.py
extra : rebase_source : eec3ee2761dd7178de1562229bfda24c0859b4ae
2017-04-28 12:19:15 +01:00

14 lines
234 B
Bash
Executable File

#!/bin/sh
# Simple wrapper to try and ensure we get the right python version loaded.
which python2.7 > /dev/null
if [ $? -eq 0 ]
then
python2.7 ./tools/git/eslintvalidate.py
else
python ./tools/git/eslintvalidate.py
fi
exit $?