Skip to content
Snippets Groups Projects
Commit 708c4e0e authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #3273 from MikeMcQuaid/mdfind-reject-backups

os/mac: ignore apps found in Time Machine backups.
parents 10491e1c 4f8af059
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment