From 1bc32e0aff46b37eccea7fbae45c579e918f9e04 Mon Sep 17 00:00:00 2001 From: Underscore Date: Thu, 10 Oct 2024 15:27:39 -0700 Subject: [PATCH] Change irm to Invoke-RestMethod When scripting it's best to use the full function in Powershell. --- scripts/start.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.ps1 b/scripts/start.ps1 index d00e3528..323a1c29 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -54,7 +54,7 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]: $script = if ($MyInvocation.MyCommand.Path) { "& { & '$($MyInvocation.MyCommand.Path)' $argList }" } else { - "iex '& { $(irm https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1) } $argList'" + "iex '& { $(Invoke-RestMethod https://github.com/ChrisTitusTech/winutil/releases/latest/download/winutil.ps1) } $argList'" } $powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" }