Skip to content
Snippets Groups Projects
Commit f355897a authored by Markus Reiter's avatar Markus Reiter
Browse files

Only show `kext` caveat on High Sierra or above.

parent 63408a10
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,6 @@ module Hbc
directives[:signal] = [*directives[:signal]].flatten.each_slice(2).to_a
@directives = directives
return if MacOS.version < :high_sierra
return unless directives.key?(:kext)
cask.caveats do
......
......@@ -17,7 +17,8 @@ module Hbc
def self.caveat(name, &block)
define_method(name) do |*args|
key = [name, *args]
@built_in_caveats[key] = instance_exec(*args, &block)
text = instance_exec(*args, &block)
@built_in_caveats[key] = text if text
:built_in_caveat
end
end
......@@ -42,6 +43,7 @@ module Hbc
end
caveat :kext do
next if MacOS.version < :high_sierra
<<~EOS
To install and/or use #{@cask} you may need to enable their kernel extension in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment