mirror of
https://github.com/inspec/inspec
synced 2024-09-22 07:21:56 +00:00
bugfix: always ensure the script resource is properly initialized, even if the os is not supported
This commit is contained in:
parent
1a38799a83
commit
90e1eb9e39
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ class Script < Cmd
|
|||
script = WinRM::PowershellScript.new(script)
|
||||
cmd = "powershell -encodedCommand #{script.encoded}"
|
||||
else
|
||||
cmd = ''
|
||||
return skip_resource 'The `script` resource is not supported on your OS yet.'
|
||||
end
|
||||
super(cmd)
|
||||
|
|
Loading…
Reference in a new issue