Skip to content

Commit

Permalink
Added SUSE distros
Browse files Browse the repository at this point in the history
  • Loading branch information
Layer8Err committed Apr 24, 2021
1 parent 8d1fae5 commit a803d04
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions WSL2_Install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -192,19 +192,33 @@ function Select-Distro () {
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'OpenSUSE Leap 42'
'Name' = 'openSUSE Leap 42'
'URI' = 'https://aka.ms/wsl-opensuse-42'
'AppxName' = 'openSUSELeap42'
'winpe' = 'openSUSE-42.exe'
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'openSUSE Leap 15.2'
'URI' = 'https://aka.ms/wsl-opensuseleap15-2'
'AppxName' = 'openSUSELeap15'
'winpe' = 'openSUSE-Leap-15.2.exe'
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'SUSE Linux Enterprise Server 12'
'URI' = 'https://aka.ms/wsl-sles-12'
'AppxName' = 'SUSELinuxEnterpriseServer12'
'winpe' = 'SLES-12.exe'
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'SUSE Linux Enterprise Server 15'
'URI' = 'https://aka.ms/wsl-SUSELinuxEnterpriseServer15SP2'
'AppxName' = 'SUSELinuxEnterpriseServer15SP2'
'winpe' = 'SUSE-Linux-Enterprise-Server-15-SP2.exe'
'installed' = $false
},
[PSCustomObject]@{
'Name' = 'Alpine'
'StoreLink' = 'https://www.microsoft.com/en-us/p/alpine-wsl/9p804crf0395'
Expand Down Expand Up @@ -241,7 +255,7 @@ function Select-Distro () {
}
Write-Host(($i + 1).ToString() + " " + ($distrolist.Name)[$i] + " " + $installedTxt)
}
$distroChoice = Read-Host '>'
[Int]$distroChoice = Read-Host '>'
$choiceNum = 0
if (($distroChoice.Length -ne 0) -and ($distroChoice -match '^\d+$')) {
if (($distroChoice -gt 0) -and ($distroChoice -le $distrolist.Length)) {
Expand Down

0 comments on commit a803d04

Please sign in to comment.