From 80a63d1789d0b3824c1959effd8c1739079f4bf6 Mon Sep 17 00:00:00 2001 From: Santiago Squarzon Date: Wed, 9 Nov 2022 00:18:29 -0300 Subject: [PATCH] testing gh workflow --- PSCompression/PSCompression.psd1 | 2 +- PSCompression/private/functions.ps1 | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PSCompression/PSCompression.psd1 b/PSCompression/PSCompression.psd1 index 19931ae..622f236 100644 --- a/PSCompression/PSCompression.psd1 +++ b/PSCompression/PSCompression.psd1 @@ -12,7 +12,7 @@ RootModule = 'PSCompression.psm1' # Version number of this module. -ModuleVersion = '1.0.0' +ModuleVersion = '1.0.2' # Supported PSEditions # CompatiblePSEditions = @() diff --git a/PSCompression/private/functions.ps1 b/PSCompression/private/functions.ps1 index 6cd59e5..5ee7f28 100644 --- a/PSCompression/private/functions.ps1 +++ b/PSCompression/private/functions.ps1 @@ -100,8 +100,8 @@ function GzipCoreReader { $inStream = $File.OpenRead() $gzip = [GZipStream]::new($inStream, [CompressionMode]::Decompress) - if($PSBoundParameters.ContainsKey('DestinationPath')) { - return $gzip.CopyTo($outFile) + if($PSBoundParameters.ContainsKey('OutStream')) { + return $gzip.CopyTo($OutStream) }