lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.1 vs lib/command/executor/fetcher.rb in cocoapods-binary-cache-0.1.2
- old
+ new
@@ -33,10 +33,15 @@
def unzip_cache
Pod::UI.puts "Unzipping cache: #{@config.cache_path} -> #{@config.prebuild_path}".green
FileUtils.rm_rf(@config.prebuild_path)
FileUtils.mkdir_p(@config.prebuild_path)
- FileUtils.cp(@config.manifest_path(in_cache: true), @config.manifest_path)
+ if File.exist?(@config.manifest_path(in_cache: true))
+ FileUtils.cp(
+ @config.manifest_path(in_cache: true),
+ @config.manifest_path
+ )
+ end
Dir[@config.generated_frameworks_dir(in_cache: true) + "/*.zip"].each do |path|
ZipUtils.unzip(path, to_dir: @config.generated_frameworks_dir)
end
end
end