aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-13 06:58:01 -0700
committerAdam Vandenberg2012-03-13 06:58:01 -0700
commit379a9353b075e10b4097596090647e8dec561b4c (patch)
tree5e66ba974998810d4b80803c11eaaee6f4f74998 /Library
parente133cba770bafdcd58b11a01838109eec438c97a (diff)
downloadbrew-379a9353b075e10b4097596090647e8dec561b4c.tar.bz2
Quote the .xz path in case of spaces
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/download_strategy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb
index 072aa712f..98f27aeea 100644
--- a/Library/Homebrew/download_strategy.rb
+++ b/Library/Homebrew/download_strategy.rb
@@ -91,7 +91,7 @@ class CurlDownloadStrategy < AbstractDownloadStrategy
chdir
when /^\xFD7zXZ\x00/ # xz compressed
raise "You must install XZutils: brew install xz" unless system "/usr/bin/which -s xz"
- safe_system "xz -dc #{@tarball_path} | /usr/bin/tar xf -"
+ safe_system "xz -dc \"#{@tarball_path}\" | /usr/bin/tar xf -"
chdir
when '____pkg'
safe_system '/usr/sbin/pkgutil', '--expand', @tarball_path, File.basename(@url)