diff --git a/.github/workflows/magisk.yml b/.github/workflows/magisk.yml index 24f79b0..5341d77 100644 --- a/.github/workflows/magisk.yml +++ b/.github/workflows/magisk.yml @@ -437,7 +437,7 @@ jobs: } 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() if (\$proc.ExitCode -ne 0) { Clear-Host @@ -447,7 +447,7 @@ jobs: exit } 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 }