From 4c70fbc202f1182877791bcd7d0415e4c3c28a17 Mon Sep 17 00:00:00 2001 From: Sam O'Connor Date: Mon, 2 May 2016 11:57:46 +1000 Subject: [PATCH] pass -o option to unzip to force over-write of existing files --- src/info_zip.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/info_zip.jl b/src/info_zip.jl index 18f7fda..72c7bfb 100644 --- a/src/info_zip.jl +++ b/src/info_zip.jl @@ -146,7 +146,7 @@ typealias FileOrBytes Union{AbstractString,Vector{UInt8}} function unzip(archive::FileOrBytes, outputpath::AbstractString=pwd()) open_zip(archive) do z - run(Cmd(`unzip -q $(z.filename)`, dir = outputpath)) + run(Cmd(`unzip -qo $(z.filename)`, dir = outputpath)) end end