From f9abc3801aa0d197198cb5074da964ff7cf87d3a Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 13 Mar 2024 11:16:24 +0100 Subject: [PATCH] Fix non-functioning statement --- scripts/Windows/Software/winget/Install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Software/winget/Install.ps1 b/scripts/Windows/Software/winget/Install.ps1 index bcab8109..72398098 100644 --- a/scripts/Windows/Software/winget/Install.ps1 +++ b/scripts/Windows/Software/winget/Install.ps1 @@ -3,7 +3,7 @@ function Install-Winget { $downloadLink = "https://github.com/microsoft/winget-cli/releases/latest/download/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle"; $file = New-TemporaryFile; - $file = Rename-Item $file "$file.msixbundle"; + $file = Rename-Item $file "$file.msixbundle" -PassThru; Invoke-WebRequest "$downloadLink" -OutFile "$file"; choco install -y winget; Add-AppxPackage "$file";