bot-base/scripts/install-hooks.sh

10 lines
160 B
Bash
Executable File

#!/usr/bin/env bash
GIT_DIR="$(git rev-parse --git-dir)"
echo "Installing hooks..."
ln -s ../../scripts/pre-commit.sh $GIT_DIR/hooks/pre-commit
echo "Done"