From e491118cdf4894d35cb7420b234156a6c3594fd2 Mon Sep 17 00:00:00 2001 From: Uwe Molnar - Unibas <108866933+umol-unibas@users.noreply.github.com> Date: Fri, 20 Dec 2024 14:19:15 +0100 Subject: [PATCH] Update Install-ChocolateyPowershellCommand.ps1 --- WASP/Private/Install-ChocolateyPowershellCommand.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/WASP/Private/Install-ChocolateyPowershellCommand.ps1 b/WASP/Private/Install-ChocolateyPowershellCommand.ps1 index ab3bed8..fc36170 100644 --- a/WASP/Private/Install-ChocolateyPowershellCommand.ps1 +++ b/WASP/Private/Install-ChocolateyPowershellCommand.ps1 @@ -32,10 +32,10 @@ function Install-ChocolateyPowershellCommand() { $downloadFilePath = Join-Path (Join-Path (Get-Item -Path ".\").FullName "tools") "$($packageName)Install.ps1" # Check the url found above ($url or $url64bit) and download the file - if ($null -eq $url) { - $urlFound = $url64bit - } elseif ($null -eq $url64bit) { + if ($null -ne $url) { $urlFound = $url + } elseif ($null -ne $url64bit) { + $urlFound = $url64bit } Write-Log "Start editing chocolateyInstall..." -Severity 1