home · contact · privacy
Fix pre-commit script failing to delete test DBs based on new filename format.
[plomtask] / scripts / setup_dev_environment.sh
1 #!/bin/sh
2 set -e
3
4 if [ ! -d '.git' ]; then
5   echo "Cannot find .git/, please run me from your cloned repo's top directory!" 
6 fi
7
8 pip install -r requirements.txt
9
10 if [ ! -f '.git/hooks/pre-commit' ]; then
11   echo 'Linking pre-commit hook.' 
12   cd .git/hooks/
13   ln -s ../../scripts/pre-commit
14 fi