build/install-wsl.ps1: Make the not-restarting message less scary.

The users will actually see this message (because for now the elevated
command prompt is visible).

Signed-off-by: Mark Yen <mark.yen@suse.com>
This commit is contained in:
Mark Yen
2021-09-22 10:01:57 -07:00
parent 00b6454367
commit 973171ccf8

View File

@@ -31,7 +31,7 @@ function Get-ElevationStatus {
# Re-run the script if elevation is required. Must pass in the script arguments.
function Restart-ScriptForElevation {
if (Get-ElevationStatus) {
Write-Output "Script is already elevated, no need to restart."
Write-Output "Script is already elevated, no need to restart; continuing with installation..."
return
}
$CommandLine = "-NoProfile -NonInteractive -ExecutionPolicy RemoteSigned -File `"${PSCommandPath}`" $($args)"