aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMax Howell2010-01-18 08:33:10 +0000
committerMax Howell2010-01-18 08:36:29 +0000
commit95fc24ecd165804cde6462d59efe6abe34dda4bf (patch)
tree6e91051243f2bf0a54cde1ed37e01d0e3f97d1df /bin
parent3bf6c5f9c9afdbfe029c163673cc849be3116d9d (diff)
downloadbrew-95fc24ecd165804cde6462d59efe6abe34dda4bf.tar.bz2
Only try to cleanup directories
Diffstat (limited to 'bin')
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 39b2325f5..01612695d 100755
--- a/bin/brew
+++ b/bin/brew
@@ -211,7 +211,7 @@ begin
if ARGV.named.empty?
require 'formula'
HOMEBREW_CELLAR.children.each do |rack|
- cleanup(rack.basename.to_s)
+ cleanup(rack.basename.to_s) if rack.directory?
end
else
ARGV.named.each { |name| cleanup name}