From b0824e10fcc0ed3f726a5e05b1370ea1834369ed Mon Sep 17 00:00:00 2001 From: Christopher Williams Date: Tue, 1 Nov 2016 16:21:24 -0400 Subject: [PATCH] Optimistically support OSX 10.6+ vis omnibus installer --- lib/knife-solo/bootstraps/darwin.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/knife-solo/bootstraps/darwin.rb b/lib/knife-solo/bootstraps/darwin.rb index 5d8170d4..c11fb91a 100644 --- a/lib/knife-solo/bootstraps/darwin.rb +++ b/lib/knife-solo/bootstraps/darwin.rb @@ -6,8 +6,7 @@ def issue end def distro - case issue - when %r{10.(?:[6-9]|10)} + if Gem::Requirement.new('>=10.6').satisfied_by? Gem::Version.new(issue) {:type => 'omnibus'} else raise "OS X version #{issue} not supported"