Skip to content

Commit

Permalink
Handle extraction paths with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
jinthagerman committed Jul 4, 2012
1 parent 63c5e45 commit a64b8e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/cocoapods/downloader/http.rb
Expand Up @@ -58,11 +58,11 @@ def download_file(full_filename)
def extract_with_type(full_filename, type=:zip)
case type
when :zip
unzip "'#{full_filename}' -d #{target_path}"
unzip "'#{full_filename}' -d '#{target_path}'"
when :tgz
tar "xfz '#{full_filename}' -C #{target_path}"
tar "xfz '#{full_filename}' -C '#{target_path}'"
when :tar
tar "xf '#{full_filename}' -C #{target_path}"
tar "xf '#{full_filename}' -C '#{target_path}'"
else
raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
end
Expand Down

0 comments on commit a64b8e2

Please sign in to comment.