diff --git a/helpers/nix-helpers.psm1 b/helpers/nix-helpers.psm1 index 65e5857..793c869 100644 --- a/helpers/nix-helpers.psm1 +++ b/helpers/nix-helpers.psm1 @@ -25,5 +25,5 @@ function Create-TarArchive { $CompressionArgument = If ([string]::IsNullOrWhiteSpace($CompressionType)) { "" } else { "--${CompressionType}" } - tar -c $CompressionArgument -f $ArchivePath "$SourceFolder\*.*" + tar -c $CompressionArgument -f $ArchivePath "$SourceFolder/*.*" } \ No newline at end of file diff --git a/helpers/win-helpers.psm1 b/helpers/win-helpers.psm1 index 710669c..e98f64a 100644 --- a/helpers/win-helpers.psm1 +++ b/helpers/win-helpers.psm1 @@ -25,5 +25,7 @@ function Create-SevenZipArchive { $ArchiveTypeArgument = "-t${ArchiveType}" - 7z a $ArchiveTypeArgument $ArchivePath "$SourceFolder\*.*" -r + Push-Location $SourceFolder + 7z a $ArchiveTypeArgument $ArchivePath *.* -r + Pop-Location } \ No newline at end of file