azure-sdk-for-cpp/eng/scripts/Install-WSL.ps1
Larry Osterman 53c9da1552
Pull all Websockets changes to main except for WebSockets itself. (#3954)
* Pulled WebSocket fixes into main except for WebSockets functionality


Co-authored-by: Rick Winter <rick.winter@microsoft.com>
Co-authored-by: Daniel Jurek <djurek@microsoft.com>
Co-authored-by: George Arama <50641385+gearama@users.noreply.github.com>
Co-authored-by: Ahson Khan <ahson_ahmedk@yahoo.com>
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
2022-10-04 14:58:56 -07:00

15 lines
360 B
PowerShell

write-host "WSL install of ubuntu."
wsl --install -d Ubuntu-20.04
write-host "Launch WSL."
[console]::OutputEncoding = New-Object System.Text.UnicodeEncoding
$wsl = wsl -l -v | out-string
write-host $wsl
while ($wsl -notmatch 'Ubuntu-20.04.*running') {
start-sleep -seconds 1
$wsl = wsl -l -v | out-string
write-host $wsl
}
write-host "Ubuntu installed."