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) }