mirror of
https://github.com/actions/runner-images.git
synced 2026-01-03 16:49:11 +08:00
Add WSL (#1081)
* 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>
This commit is contained in:
14
images/win/scripts/Installers/Validate-WSL.ps1
Normal file
14
images/win/scripts/Installers/Validate-WSL.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
################################################################################
|
||||
## 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
|
||||
}
|
||||
Reference in New Issue
Block a user