Skip to content
Browse files

Added error check for git clone system call.

  • Loading branch information...
1 parent 3a2df76 commit 068e522ce302f948bf3144104dea738316a6ff73 @3martini 3martini committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Rakefile
View
2 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'

0 comments on commit 068e522

Please sign in to comment.
Something went wrong with that request. Please try again.