mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-06-22 23:01:48 +00:00
chore: apply prettier on the entire project
This commit is contained in:
Executable
+12
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
HOOKS_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
GIT_HOOKS_DIR="$(git rev-parse --show-toplevel)/.git/hooks"
|
||||
|
||||
cp "$HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-commit"
|
||||
# cp "$HOOKS_DIR/pre-push" "$GIT_HOOKS_DIR/pre-push"
|
||||
chmod +x "$GIT_HOOKS_DIR/pre-commit" "$GIT_HOOKS_DIR/pre-push"
|
||||
# chmod +x "$GIT_HOOKS_DIR/pre-push"
|
||||
|
||||
echo "Git hooks installed."
|
||||
Reference in New Issue
Block a user