mirror of
https://github.com/LSPosed/MagiskOnWSALocal.git
synced 2025-09-01 18:20:14 +00:00
Set-ExecutionPolicy
This commit is contained in:
parent
74e041bc0f
commit
63609f1b32
1 changed files with 1 additions and 0 deletions
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…
Add table
Reference in a new issue