mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-20 06:29:50 +00:00
* Add WSL * Move WSL to the end of the provision * Add elevated_user * No restart VM * Add Validation * Add WSL note in Readme.md * Rename WSL1 to WSL Co-authored-by: Sergey Dolin <v-sedoli@micorosoft.com>
15 lines
345 B
PowerShell
15 lines
345 B
PowerShell
################################################################################
|
|
## File: Validate-WSL.ps1
|
|
## Desc: Validate WSL CLI existst
|
|
################################################################################
|
|
|
|
if (Get-Command -Name 'wsl')
|
|
{
|
|
Write-Host 'wsl is on path'
|
|
}
|
|
else
|
|
{
|
|
Write-Host 'wsl not on path'
|
|
exit 1
|
|
}
|