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:
chef-delivery 2015-11-02 14:56:02 -08:00
commit f395ba7c49

View file

@ -42,7 +42,8 @@ class Cmd < Inspec.resource(1)
elsif inspec.os.unix? elsif inspec.os.unix?
res = inspec.backend.run_command("type \"#{@command}\"") res = inspec.backend.run_command("type \"#{@command}\"")
else 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 end
res.exit_status.to_i == 0 res.exit_status.to_i == 0
end end