[minor] [installer] check if app and lib are cloned before proceeding
This commit is contained in:
parent
ea83d88924
commit
7d3e75da23
@ -193,12 +193,16 @@ def setup_folders(install_path):
|
||||
print "Cloning erpnext"
|
||||
exec_in_shell("cd %s && git clone https://github.com/webnotes/erpnext.git app" % install_path)
|
||||
exec_in_shell("cd app && git config core.filemode false")
|
||||
if not os.path.exists(app):
|
||||
raise Exception, "Couldn't clone erpnext repository"
|
||||
|
||||
lib = os.path.join(install_path, "lib")
|
||||
if not os.path.exists(lib):
|
||||
print "Cloning wnframework"
|
||||
exec_in_shell("cd %s && git clone https://github.com/webnotes/wnframework.git lib" % install_path)
|
||||
exec_in_shell("cd lib && git config core.filemode false")
|
||||
if not os.path.exists(lib):
|
||||
raise Exception, "Couldn't clone wnframework repository"
|
||||
|
||||
public = os.path.join(install_path, "public")
|
||||
for p in [public, os.path.join(public, "files"), os.path.join(public, "backups"),
|
||||
|
Loading…
Reference in New Issue
Block a user