10 lines
206 B
Bash
10 lines
206 B
Bash
|
#!/bin/bash
|
||
|
set +e
|
||
|
ln -sf ../../tools/pre-commit-hook .git/hooks/pre-commit
|
||
|
if [[ 0 != $? ]]; then
|
||
|
echo "pre-commit hooks: [ERROR] Cannot configure"
|
||
|
exit 1
|
||
|
else
|
||
|
echo "pre-commit hooks: [OK]"
|
||
|
fi
|