From 79a6d5cb04c11c191a8c26e3e7f061b1da2c80ac Mon Sep 17 00:00:00 2001 From: Richard Kuhnt Date: Fri, 26 Apr 2019 20:34:16 +0200 Subject: [PATCH] decompress: Fix get_config calls --- lib/decompress.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/decompress.ps1 b/lib/decompress.ps1 index a96ec5e015..cf552e2c41 100644 --- a/lib/decompress.ps1 +++ b/lib/decompress.ps1 @@ -10,7 +10,7 @@ function Test-7ZipRequirement { $File ) if ($URL) { - if (get_config 7ZIPEXTRACT_USE_EXTERNAL) { + if ((get_config 7ZIPEXTRACT_USE_EXTERNAL)) { return $false } else { return ($URL | Where-Object { Test-7ZipRequirement -File $_ }).Count -gt 0 @@ -28,7 +28,7 @@ function Test-LessMSIRequirement { [String[]] $URL ) - if (get_config MSIEXTRACT_USE_LESSMSI) { + if ((get_config MSIEXTRACT_USE_LESSMSI)) { return ($URL | Where-Object { $_ -match '\.msi$' }).Count -gt 0 } else { return $false @@ -48,7 +48,7 @@ function Expand-7ZipArchive { $Removal ) $LogLocation = "$(Split-Path $Path)\7zip.log" - if (get_config 7ZIPEXTRACT_USE_EXTERNAL) { + if ((get_config 7ZIPEXTRACT_USE_EXTERNAL)) { try { 7z x "$Path" -o"$DestinationPath" -y | Out-File $LogLocation } catch [System.Management.Automation.CommandNotFoundException] { @@ -92,7 +92,7 @@ function Expand-MSIArchive { $Removal ) $LogLocation = "$(Split-Path $Path)\msi.log" - if (get_config MSIEXTRACT_USE_LESSMSI) { + if ((get_config MSIEXTRACT_USE_LESSMSI)) { &(file_path lessmsi lessmsi.exe) x "$Path" "$DestinationPath\" | Out-File $LogLocation if ($LASTEXITCODE -ne 0) { abort "Failed to extract files from $Path.`nLog file:`n $(friendly_path $LogLocation)"