mirror of
https://github.com/gosticks/brew.git
synced 2026-12-06 12:31:48 +00:00
os/mac: ignore apps found in Time Machine backups.
These can introduce confusion on e.g. outdated Xcode versions when they are the only (or first) versions that are found.
This commit is contained in:
@@ -229,7 +229,9 @@ module OS
|
||||
end
|
||||
|
||||
def app_with_bundle_id(*ids)
|
||||
path = mdfind(*ids).first
|
||||
path = mdfind(*ids)
|
||||
.reject { |p| p.include?("/Backups.backupdb/") }
|
||||
.first
|
||||
Pathname.new(path) unless path.nil? || path.empty?
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user