Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
fix traceback when checking for git and it is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
John (J5) Palmieri committed Jun 15, 2012
1 parent e3c5744 commit 592588c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion express/lib/rhc/wizard.rb
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,11 @@ def exe?(executable)
end

def has_git?
%x{ git --version }
begin
%x{ git --version }
rescue
end

$?.success?
rescue
false
Expand Down

0 comments on commit 592588c

Please sign in to comment.