mirror of
https://github.com/fastogt/fastocloud.git
synced 2025-02-14 19:02:02 +00:00
12 lines
211 B
Bash
12 lines
211 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
HOOKS="pre-commit"
|
||
|
ROOT_DIR=$(git rev-parse --show-toplevel)
|
||
|
|
||
|
for hook in $HOOKS; do
|
||
|
if [ ! -f $ROOT_DIR/.git/hooks/$hook ]; then
|
||
|
ln -s $ROOT_DIR/scripts/$hook $ROOT_DIR/.git/hooks/$hook
|
||
|
fi
|
||
|
done
|
||
|
|