Merge pull request #3273 from MikeMcQuaid/mdfind-reject-backups
os/mac: ignore apps found in Time Machine backups.
This commit is contained in:
commit
708c4e0ebd
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user