From b1153685a422030432fd777af28f52d2bda66420 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Mon, 2 Nov 2015 22:52:04 +0000 Subject: [PATCH] bugfix: relax fail for command.exist? for inspec check command --- lib/resources/command.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/resources/command.rb b/lib/resources/command.rb index f8498f4fa..a87c826f0 100644 --- a/lib/resources/command.rb +++ b/lib/resources/command.rb @@ -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