Update powershell.rb

This commit is contained in:
Tom Sellers 2014-05-27 05:18:00 -05:00
parent 42a17cc085
commit ae1b7e564b
1 changed files with 1 additions and 1 deletions

View File

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