Don’t use mdfind.

This commit is contained in:
Markus Reiter
2018-08-04 13:30:20 +02:00
parent 0f4e8de62a
commit 8e51a9932e
+2 -4
View File
@@ -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)