summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorAnton Vattay <3martini@gmail.com>2012-02-08 17:52:15 -0500
committerAnton Vattay <3martini@gmail.com>2012-02-08 17:52:15 -0500
commit068e522ce302f948bf3144104dea738316a6ff73 (patch)
treeb1da58c87c5fe28e469bd9ef1b08193c7ce01ec0 /Rakefile
parent3a2df76133171e1cd576708a60694e7d0632b671 (diff)
Added error check for git clone system call.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index a4d8651..48d53e6 100644
--- a/Rakefile
+++ b/Rakefile
@@ -254,7 +254,7 @@ end # end namespace :theme
# Returns theme manifest hash
def theme_from_git_url(url)
tmp_path = JB::Path.build(:theme_packages, :node => "_tmp")
- system("git clone #{url} #{tmp_path}")
+ abort("rake aborted: could not find git in environment") if !system("git clone #{url} #{tmp_path}")
manifest = verify_manifest(tmp_path)
new_path = JB::Path.build(:theme_packages, :node => manifest["name"])
if File.exist?(new_path) && ask("=> #{new_path} theme package already exists. Override?", ['y', 'n']) == 'n'