Overwrite on unzip
This commit is contained in:
parent
9bcabd23e3
commit
0611d7de5a
1 changed files with 1 additions and 1 deletions
|
|
@ -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('$#', '.'); }\""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue