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 cd lemur && lemur db upgrade
setup-git: setup-git:
@echo "--> Installing git hooks" if [ -d .git/hooks ]; then \
git config branch.autosetuprebase always @echo "--> Installing git hooks"; \
cd .git/hooks && ln -sf ../../hooks/* ./ git config branch.autosetuprebase always; \
@echo "" cd .git/hooks && ln -sf ../../hooks/* ./; \
@echo ""; \
fi
clean: clean:
@echo "--> Cleaning static cache" @echo "--> Cleaning static cache"