diff options
| author | Max Howell | 2009-09-27 20:18:06 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-28 00:20:50 +0100 |
| commit | af6c8902945c9b31efcd3cc65a8c76cf2c82296d (patch) | |
| tree | 3d6738118b6de5849321f5539e52241bcd0db184 | |
| parent | 3971a5666c77b1c87f58968f07ef8843ee1e9c84 (diff) | |
| download | brew-af6c8902945c9b31efcd3cc65a8c76cf2c82296d.tar.bz2 | |
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.
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 4 |
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 |
