Land #3390, Fix have_powershell

bug/bundler_fix
Meatballs 2014-06-01 10:43:35 +01:00
commit 58ee2ccd6e
No known key found for this signature in database
GPG Key ID: 5380EAF01F2F8B38
1 changed files with 2 additions and 2 deletions

View File

@ -19,8 +19,8 @@ module Powershell
# Returns true if powershell is installed # Returns true if powershell is installed
# #
def have_powershell? def have_powershell?
cmd_out = cmd_exec("powershell get-host") cmd_out = cmd_exec('cmd.exe /c "echo. | powershell get-host"')
return true if cmd_out =~ /Name.*Version.*InstanceID/ return true if cmd_out =~ /Name.*Version.*InstanceId/m
return false return false
end end