diff --git a/cmd/brewcask-ci.rb b/cmd/brewcask-ci.rb index 6a7788c5b5..8030e74b45 100755 --- a/cmd/brewcask-ci.rb +++ b/cmd/brewcask-ci.rb @@ -50,10 +50,8 @@ module Hbc checks = { installed_apps: Diffable.new do - sleep(5) # Allow `mdfind` to refresh. - system_command!("/usr/bin/mdfind", args: ["-onlyin", "/", "kMDItemContentType == com.apple.application-bundle"], print_stderr: false) - .stdout - .split("\n") + ["/Applications", File.expand_path("~/Applications")] + .flat_map { |dir| Dir["#{dir}/**/*.app"] } end, installed_kexts: Diffable.new do system_command!("/usr/sbin/kextstat", args: ["-kl"], print_stderr: false)