mirror of
https://github.com/inspec/inspec
synced 2025-02-24 19:37:18 +00:00
commit
3486a67ca4
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ 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
|
||||||
warn "`command(#{@command}).exist?` is not suported on you OS: #{inspec.os[:family]}"
|
warn "`command(#{@command}).exist?` is not suported on your OS: #{inspec.os[:family]}"
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
res.exit_status.to_i == 0
|
res.exit_status.to_i == 0
|
||||||
|
|
Loading…
Add table
Reference in a new issue