diff options
| author | Max Howell | 2009-09-27 20:18:06 +0100 |
|---|---|---|
| committer | Max Howell | 2009-09-28 00:20:50 +0100 |
| commit | 3f68e913bf42a327388fd7ee54e2b91796d77f48 (patch) | |
| tree | e0c8af0f745cbd3b7d78e3c66fc3a42a1cd3c89c /Library | |
| parent | 17c1eaaf2e6b77738e688774aa0238d097bb1f9d (diff) | |
| download | homebrew-3f68e913bf42a327388fd7ee54e2b91796d77f48.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.
Diffstat (limited to 'Library')
| -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 |
