copyparty/scripts/install-githooks.sh
2021-06-01 05:49:41 +02:00

13 lines
168 B
Bash
Executable file

#!/bin/bash
set -ex
[ -e setup.py ] || ..
[ -e setup.py ] || {
echo u wot
exit 1
}
cd .git/hooks
rm -f pre-commit
ln -s ../../scripts/run-tests.sh pre-commit