This commit is contained in:
Dominik Richter 2015-11-03 00:30:06 +01:00
parent 2a1289616d
commit 6e8c4f02a1

View file

@ -42,7 +42,7 @@ class Cmd < Inspec.resource(1)
elsif inspec.os.unix?
res = inspec.backend.run_command("type \"#{@command}\"")
else
warn "`command(#{@command}).exit?` is not suported on you OS: #{inspec.os['family']}"
warn "`command(#{@command}).exist?` is not suported on you OS: #{inspec.os['family']}"
return false
end
res.exit_status.to_i == 0