From 9672e2cfb2425c2bc47287d5027f9ee4e2e0f405 Mon Sep 17 00:00:00 2001 From: Howard Wu <40033067+Howard20181@users.noreply.github.com> Date: Sun, 2 Oct 2022 19:05:08 +0800 Subject: [PATCH] Update installation script Make sure to run Powershell using the Windows console host --- scripts/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/build.sh b/scripts/build.sh index 79b50d7..90aa0d7 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -691,7 +691,7 @@ function Finish { If (-Not (Test-Administrator)) { Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force - \$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs powershell.exe -Args "-ExecutionPolicy Bypass -Command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath' EVAL" + \$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs ConHost.exe -Args "powershell -ExecutionPolicy Bypass -Command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath' EVAL" \$proc.WaitForExit() If (\$proc.ExitCode -Ne 0) { Clear-Host