lib/command/helper/zip.rb in cocoapods-binary-artifactory-cache-0.0.12 vs lib/command/helper/zip.rb in cocoapods-binary-artifactory-cache-0.0.13
- old
+ new
@@ -15,11 +15,13 @@
`#{cmd.join(" ")}`
end
def self.unzip(path, to_dir: nil)
cmd = []
- cmd << "unzip -nq" << path
+ cmd << "unzip -oq" << path
cmd << "-d" << to_dir unless to_dir.nil?
`#{cmd.join(" ")}`
+ if $? != 0 then return false
+ return true
end
end
end