From 6a871b1feb681063fb593f3a8528eb98dc4d6e7f Mon Sep 17 00:00:00 2001 From: Underscore Date: Thu, 10 Oct 2024 15:12:39 -0700 Subject: [PATCH] Add -NoExit to $powershellcmd command within Start-Process argument list. --- scripts/start.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/start.ps1 b/scripts/start.ps1 index c289709c..d00e3528 100644 --- a/scripts/start.ps1 +++ b/scripts/start.ps1 @@ -60,7 +60,7 @@ if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]: $powershellcmd = if (Get-Command pwsh -ErrorAction SilentlyContinue) { "pwsh" } else { "powershell" } $processCmd = if (Get-Command wt.exe -ErrorAction SilentlyContinue) { "wt.exe" } else { $powershellcmd } - Start-Process $processCmd -ArgumentList "$powershellcmd -ExecutionPolicy Bypass -NoProfile -Command $script" -Verb RunAs + Start-Process $processCmd -ArgumentList "$powershellcmd -ExecutionPolicy Bypass -NoExit -NoProfile -Command $script" -Verb RunAs break }