Skip to content

Commit

Permalink
Only do code update if local folder is a repo clone
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Chernyshev committed Apr 28, 2013
1 parent b5c0726 commit 5242ba0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ success:
@echo "[*** SUCCESS ***] Installation and upgrade of Startup API completed successfully"

updatecode:
ifneq "$(wildcard .git )" ""
git pull origin master
git submodule init
git submodule update
endif

checkconfig:
ifeq ($(wildcard ../users_config.php),)
Expand Down

0 comments on commit 5242ba0

Please sign in to comment.