Skip to content
Snippets Groups Projects
Commit 5a140c0f authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

exclude repository from brew list --unbrewed

parent 49ef6267
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,10 @@ private
cache_folder = (HOMEBREW_CACHE.relative_path_from(HOMEBREW_PREFIX)).to_s
dirs -= [cache_folder]
# Exclude the repository, if it has been located under the prefix
cache_folder = (HOMEBREW_REPOSITORY.relative_path_from(HOMEBREW_PREFIX)).to_s
dirs -= [cache_folder]
cd HOMEBREW_PREFIX
exec 'find', *dirs + %w[-type f ( ! -iname .ds_store ! -iname brew ! -iname brew-man.1 ! -iname brew.1 )]
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