aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/brew.h.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb
index 535e3178d..b2e56f8cf 100644
--- a/Library/Homebrew/brew.h.rb
+++ b/Library/Homebrew/brew.h.rb
@@ -345,7 +345,7 @@ private
def clean_file path
perms=0444
- case `file -h #{path}`
+ case `file -h '#{path}'`
when /Mach-O dynamically linked shared library/
strip path, '-SxX'
when /Mach-O [^ ]* ?executable/
@@ -366,7 +366,7 @@ private
elsif path.extname == '.la' and not @f.skip_clean? path
# *.la files are stupid
path.unlink
- else
+ elsif not path.symlink?
clean_file path
end
end