Commit d8e33949 authored by David Venable's avatar David Venable

The tar command uses -C to specify a directory, not -d.

parent 356216d5
...@@ -60,9 +60,9 @@ module Pod ...@@ -60,9 +60,9 @@ module Pod
when :zip when :zip
unzip "'#{full_filename}' -d #{target_path}" unzip "'#{full_filename}' -d #{target_path}"
when :tgz when :tgz
tar "xfz '#{full_filename}' -d #{target_path}" tar "xfz '#{full_filename}' -C #{target_path}"
when :tar when :tar
tar "xf '#{full_filename}' -d #{target_path}" tar "xf '#{full_filename}' -C #{target_path}"
else else
raise UnsupportedFileTypeError.new "Unsupported file type: #{type}" raise UnsupportedFileTypeError.new "Unsupported file type: #{type}"
end 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