From d89f113cd21709a395665796a0ced38c921d966e Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 1 Jun 2020 16:01:06 +0300 Subject: [PATCH] fix creating tar archive --- nix-helpers.psm1 | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/nix-helpers.psm1 b/nix-helpers.psm1 index 0f00e21..ed50056 100644 --- a/nix-helpers.psm1 +++ b/nix-helpers.psm1 @@ -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