Commit 86f64244 authored by Fabio Pelosin's avatar Fabio Pelosin

Merge branch 'develop' of github.com:CocoaPods/CocoaPods into develop

* 'develop' of github.com:CocoaPods/CocoaPods:
  Handle extraction paths with spaces
parents 449c64f5 a90159d2
......@@ -58,11 +58,11 @@ module Pod
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment