minor changes

This commit is contained in:
Dmitry Shibanov
2020-06-01 16:03:49 +03:00
parent 00f276c05e
commit e76e666987

View File

@@ -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