mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-12-25 02:41:48 +01:00
Set-ExecutionPolicy
This commit is contained in:
parent
74e041bc0f
commit
63609f1b32
1
.github/workflows/magisk.yml
vendored
1
.github/workflows/magisk.yml
vendored
@ -531,6 +531,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not (Test-Administrator)) {
|
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 powershell.exe -Args "-executionpolicy bypass -command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath' EVAL"
|
||||||
\$proc.WaitForExit()
|
\$proc.WaitForExit()
|
||||||
if (\$proc.ExitCode -ne 0) {
|
if (\$proc.ExitCode -ne 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user