mfashby.net

Website mfashby.net
git clone git://code.mfashby.net:/mfashby.net
Log | Files | Refs | Submodules | README

update-hooks.sh (188B)


      1 #!/usr/bin/env bash
      2 
      3 ## Configure git hooks
      4 touch .git/hooks/pre-push
      5 chmod +x .git/hooks/pre-push
      6 grep -qxF './deploy.sh' .git/hooks/pre-push || echo './deploy.sh' >> .git/hooks/pre-push