minor changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user