diff --git a/src/helpers/functions/Get-ChocolateyUnzip.ps1 b/src/helpers/functions/Get-ChocolateyUnzip.ps1 index 450e12f..2b6263d 100644 --- a/src/helpers/functions/Get-ChocolateyUnzip.ps1 +++ b/src/helpers/functions/Get-ChocolateyUnzip.ps1 @@ -80,6 +80,7 @@ param( $unzipOps = { param($7zip, $destination, $fileFullPath, [ref]$exitCodeRef) $p = Start-Process $7zip -ArgumentList "x -o`"$destination`" -y `"$fileFullPath`"" -Wait -WindowStyle Hidden -PassThru + Wait-Process -InputObject $p $exitCodeRef.Value = $p.ExitCode }