Land #3390, Fix have_powershell
commit
58ee2ccd6e
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue