github.com/jbking/gohan@v0.0.0-20151217002006-b41ccf1c2a96/hooks/run.sh (about)

     1  #!/bin/bash
     2  
     3  if [ ! -d ../.git/hooks.local ]; then
     4    mv ../.git/hooks ../.git/hooks.local
     5    ln -s ../hooks ../.git/hooks
     6  else
     7    echo "You already have hooks.local directory."
     8    echo "If it is the first time you run this script, then you should fix it so"
     9    echo "that hooks links to ../hooks and your own git hooks are in hooks.local."
    10  fi