mirror of
https://github.com/MustardChef/WSABuilds.git
synced 2024-11-10 21:55:11 +01:00
parent
f8b2d8868a
commit
90f601d4a2
4
.github/workflows/magisk.yml
vendored
4
.github/workflows/magisk.yml
vendored
@ -437,7 +437,7 @@ jobs:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (-not (Test-Administrator)) {
|
if (-not (Test-Administrator)) {
|
||||||
\$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) {
|
||||||
Clear-Host
|
Clear-Host
|
||||||
@ -447,7 +447,7 @@ jobs:
|
|||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
elseif ((\$args.Count -eq 1) -and (\$args[0] -eq "EVAL")) {
|
elseif ((\$args.Count -eq 1) -and (\$args[0] -eq "EVAL")) {
|
||||||
Start-Process powershell.exe -Args "-executionpolicy bypass -command Set-Location \`"\$PSScriptRoot\`"; \`"\$PSCommandPath\`""
|
Start-Process powershell.exe -Args "-executionpolicy bypass -command Set-Location '\$PSScriptRoot'; &'\$PSCommandPath'"
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user