fixing setup-git so build continues if ./git/hooks does not exist.
This commit is contained in:
parent
1fc2e29ab8
commit
75eaea3aad
11
Makefile
11
Makefile
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user