lib/command/helper/zip.rb in cocoapods-binary-cache-0.1.1 vs lib/command/helper/zip.rb in cocoapods-binary-cache-0.1.2

- old
+ new

@@ -3,10 +3,10 @@ def self.zip(path, to_dir: nil) basename = File.basename(path) out_path = to_dir.nil? ? "#{basename}.zip" : "#{to_dir}/#{basename}.zip" cmd = [] cmd << "cd" << File.dirname(path) - cmd << "&& zip --symlinks" << out_path << basename + cmd << "&& zip -r --symlinks" << out_path << basename cmd << "&& cd -" `#{cmd.join(" ")}` end def self.unzip(path, to_dir: nil)