Files
tubestation/tools/git/git-lint-commit-hook.sh
Mark Banner a69d1f622b Bug 1360595 - Add a git pre-commit hook for running ESLint. r=mossop
MozReview-Commit-ID: 1YJL5Sd4dlb
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 $?