diff options
Diffstat (limited to 'scripts/install-hooks.sh')
| -rwxr-xr-x | scripts/install-hooks.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/install-hooks.sh b/scripts/install-hooks.sh new file mode 100755 index 0000000..6acf800 --- /dev/null +++ b/scripts/install-hooks.sh @@ -0,0 +1,11 @@ +#!/bin/sh + +HOOKS_DIR=$(git rev-parse --git-path hooks) +SCRIPT_DIR=$(dirname "$0") + +echo "Installing git hooks to $HOOKS_DIR..." + +cp "$SCRIPT_DIR/pre-push-hook.sh" "$HOOKS_DIR/pre-push" +chmod +x "$HOOKS_DIR/pre-push" + +echo "Hooks installed successfully." |
