Overwrite on unzip

This commit is contained in:
Ganesh Viswanathan 2017-12-04 11:06:01 -06:00
commit 0611d7de5a

View file

@ -54,7 +54,7 @@ proc execProc(cmd: string): string =
quit(1)
proc extractZip(zipfile: string) =
var cmd = "unzip $#"
var cmd = "unzip -o $#"
if defined(Windows):
cmd = "powershell -nologo -noprofile -command \"& { Add-Type -A 'System.IO.Compression.FileSystem'; [IO.Compression.ZipFile]::ExtractToDirectory('$#', '.'); }\""