mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-08 16:15:23 +00:00

MozReview-Commit-ID: 1YJL5Sd4dlb --HG-- rename : tools/mercurial/eslintvalidate.py => tools/lint/eslint/hook_helper.py extra : rebase_source : eec3ee2761dd7178de1562229bfda24c0859b4ae
14 lines
234 B
Bash
Executable File
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 $?
|