Move helpers to submodule #19

Merged
dmitry-shibanov merged 5 commits from v-dmshib/common-module into master 2020-06-02 20:21:43 +05:00
Showing only changes of commit e76e666987 - Show all commits

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