nanobot-voice-interface/scripts/install_git_hooks.sh

6 lines
208 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
root_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
git -C "${root_dir}" config core.hooksPath .githooks
echo "Configured git hooks path: ${root_dir}/.githooks"