Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
Unable to detect if it is in Windows terminal
  • Loading branch information
Howard20181 committed Oct 5, 2022
1 parent 97dba57 commit b092bce
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -685,8 +685,6 @@ function Test-Administrator {
}
}
function Test-WindowsTerminal { test-path env:WT_SESSION }
function Get-InstalledDependencyVersion {
param (
[string]\$Name,
Expand All @@ -703,7 +701,7 @@ function Finish {
Start-Process "wsa://com.android.vending"
}
If (-Not (Test-Administrator) -Or (Test-WindowsTerminal)) {
If (-Not (Test-Administrator)) {
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Bypass -Force
\$proc = Start-Process -PassThru -WindowStyle Hidden -Verb RunAs ConHost.exe -Args "powershell -ExecutionPolicy Bypass -Command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath' EVAL"
\$proc.WaitForExit()
Expand Down

0 comments on commit b092bce

Please sign in to comment.