From af6c8902945c9b31efcd3cc65a8c76cf2c82296d Mon Sep 17 00:00:00 2001 From: Max Howell Date: Sun, 27 Sep 2009 20:18:06 +0100 Subject: Quote path parameters where appropriate Our build directories are space-less, but the final destination may have spaces, especially since OS X often uses your full name as your home directory path. --- Library/Homebrew/brew.h.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library') 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 -- cgit v1.2.3