mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Merge pull request #195 from chef/cmd-profile-check
Merged change 9ad9e0ae-6e25-433c-a591-dd40b5413c1d From review branch cmd-profile-check into master Signed-off-by: drichter <drichter@chef.io>
This commit is contained in:
commit
f395ba7c49
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…
Reference in a new issue