bootsrap.sh 284 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#!/bin/bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

cd "$DIR/.."

log() {
  echo "$(basename ${BASH_SOURCE[0]}): $@"
}

install_hooks() {
    git config core.hooksPath \
        || git config core.hooksPath ./dev/hooks
}

log 're/configuring hooks...'
install_hooks