archidata/tools/configure_precommit.bash

10 lines
206 B
Bash
Raw Normal View History

2023-11-13 21:38:07 +01:00
#!/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