From 7d3e75da2385fd6eac378fa943fe8789b6eb9b6d Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 24 Jul 2013 19:01:02 +0530 Subject: [PATCH] [minor] [installer] check if app and lib are cloned before proceeding --- install_erpnext.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install_erpnext.py b/install_erpnext.py index 786b3a26d0..a10ce10680 100644 --- a/install_erpnext.py +++ b/install_erpnext.py @@ -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"),