fixing setup-git so build continues if ./git/hooks does not exist.

This commit is contained in:
csine-nflx 2020-08-26 01:38:17 -07:00
parent 2b64959953
commit be21d357cb
1 changed files with 7 additions and 4 deletions

View File

@ -49,10 +49,13 @@ reset-db:
cd lemur && lemur db upgrade
setup-git:
@echo "--> Installing git hooks"
git config branch.autosetuprebase always
cd .git/hooks && ln -sf ../../hooks/* ./
@echo ""
if [ -d .git/hooks ]; then \
@echo "--> Installing git hooks"; \
git config branch.autosetuprebase always; \
cd .git/hooks && ln -sf ../../hooks/* ./; \
@echo ""; \
fi
clean:
@echo "--> Cleaning static cache"