mirror of
https://github.com/inspec/inspec
synced 2024-11-26 06:30:26 +00:00
Go back to cmd from powershell.
Apparently it is too much of a shift and I tested too small of a sample. Signed-off-by: Ryan Davis <zenspider@chef.io>
This commit is contained in:
parent
702533f351
commit
5573957c52
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ module FunctionalHelper
|
|||
|
||||
def inspec(commandline, prefix = nil)
|
||||
if is_windows?
|
||||
invocation = "powershell -NonInteractive -Command \"#{prefix} bundle exec #{exec_inspec} #{commandline}\""
|
||||
invocation = "cmd /C \"#{prefix} #{exec_inspec} #{commandline}\""
|
||||
result = CMD.run_command(invocation)
|
||||
result.stdout.encode!(universal_newline: true)
|
||||
result.stderr.encode!(universal_newline: true)
|
||||
|
|
Loading…
Reference in a new issue