unreal-automations/install_hook.sh
2025-03-05 08:56:09 +01:00

12 lines
No EOL
236 B
Bash

#!/bin/bash
HOOKS_DIR="../.git/hooks"
PRE_PUSH_HOOK="$HOOKS_DIR/pre-push"
# Create symlink
ln -sf "$(dirname "$0")/format_code.sh" "$PRE_PUSH_HOOK"
# Set permissions
chmod +x "$PRE_PUSH_HOOK"
echo "Git hooks installed successfully!"