mirror of
https://github.com/inspec/inspec
synced 2025-02-17 06:28:40 +00:00
bugfix: relax fail for command.exist? for inspec check command
This commit is contained in:
parent
5b5bb307fb
commit
b1153685a4
1 changed files with 2 additions and 1 deletions
|
@ -42,7 +42,8 @@ class Cmd < Inspec.resource(1)
|
|||
elsif inspec.os.unix?
|
||||
res = inspec.backend.run_command("type \"#{@command}\"")
|
||||
else
|
||||
fail "`command(#{@command}).exits?` is not suported on you OS."
|
||||
warn "`command(#{@command}).exit?` is not suported on you OS: #{inspec.os['family']}"
|
||||
return false
|
||||
end
|
||||
res.exit_status.to_i == 0
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue