fix creating tar archive

pull/2/head
Dmitry Shibanov 5 years ago
parent 38d2076ca1
commit d89f113cd2

@ -25,18 +25,15 @@ function Create-TarArchive {
)
$arguments = @(
"-c",
"-f", $ArchivePath,
"."
"-c", "--$CompressionType"
)
If ($CompressionType) {
$arguments += "--${CompressionType}"
}
if ($DereferenceSymlinks) {
$arguments += "-h"
}
$arguments += @("-f", $ArchivePath, ".")
Push-Location $SourceFolder
Write-Debug "tar $arguments"
tar @arguments

Loading…
Cancel
Save