mirror of
https://github.com/Xevion/spotify-quickauth.git
synced 2025-12-10 04:08:47 -06:00
Add pre-commit, pre-push hooks formally
This commit is contained in:
10
.hooks/link.sh
Executable file
10
.hooks/link.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
hooks=(
|
||||
"pre-commit"
|
||||
"pre-push"
|
||||
)
|
||||
|
||||
for hook in "${hooks[@]}"; do
|
||||
chmod +x .hooks/$hook.sh
|
||||
ln -s -f ../../.hooks/$hook.sh .git/hooks/$hook
|
||||
done
|
||||
Reference in New Issue
Block a user