add qlplugins check to guess_cask_version

This commit is contained in:
Bevan Kay 2021-07-22 19:36:50 +10:00
parent 5040ec8142
commit 778d5df6d4
No known key found for this signature in database
GPG Key ID: 479C98436A4773B9

View File

@ -122,8 +122,8 @@ module Homebrew
sig { returns(T.nilable(String)) } sig { returns(T.nilable(String)) }
def guess_cask_version def guess_cask_version
if apps.empty? && pkgs.empty? if apps.empty? && pkgs.empty? && qlplugins.empty?
opoo "Cask #{cask} does not contain any apps or PKG installers." opoo "Cask #{cask} does not contain any apps, qlplugins or PKG installers."
return return
end end