Skip to content

Instantly share code, notes, and snippets.

@Jaxmetalmax
Last active June 7, 2018 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaxmetalmax/0816b7ec781686fd60687542f09a9962 to your computer and use it in GitHub Desktop.
Save Jaxmetalmax/0816b7ec781686fd60687542f09a9962 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
PATHGIT=$(pwd)/.git/
if [[ ! -d $PATHGIT ]]; then
echo -e "This is not a Git repo. Run it on a git repo..."
exit 2;
else
curl --output $PATHGIT/hooks/checkenv.py https://gist.githubusercontent.com/Jaxmetalmax/14199d353855730568e88d2dfc0487c6/raw/18e8642439e71ea6e14e9827889fe37efd7319d8/checkenvfiles.py
curl --output $PATHGIT/hooks/pre-commit https://gist.githubusercontent.com/Jaxmetalmax/e2644337cbd76b9bee7b129a231f89cd/raw/80fb9d924a1dd457f49ac6b1561079f7efdae20f/precommit.sh
chmod u+x $PATHGIT/hooks/pre-commit
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment