From 231a5101d7ba41ee7bd4dc5c1c58c8205d1f61f4 Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Fri, 6 Sep 2024 12:36:05 +0200 Subject: [PATCH] bugfix: surround URL with quotes on Invoke-RestMethod --- install.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.ps1 b/install.ps1 index 2cc44ae..18f90da 100644 --- a/install.ps1 +++ b/install.ps1 @@ -42,7 +42,7 @@ if ($isRelease) { # Download release files from github as-is Write-Host "Downloading program into local directory..." -ForegroundColor Cyan - Invoke-RestMethod https://github.com/Baipyrus/ProxySwitcher/releases/latest/download/ProxySwitcher.zip -OutFile $env:TMP + Invoke-RestMethod "https://github.com/Baipyrus/ProxySwitcher/releases/latest/download/ProxySwitcher.zip" -OutFile $env:TMP # Expand Archive to program directory Expand-Archive "$env:TMP\ProxySwitcher.zip" -DestinationPath $programPath