Browse Source

Remove arch from the script entirely

everything is x64 anyway
master
LoganDark 2 years ago
parent
commit
71e8b3ca7f
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      InstallWSL.psm1

+ 6
- 3
InstallWSL.psm1 View File

@ -384,7 +384,8 @@ function Install-WSLInteractive {
$Distros | ForEach-Object {
Add-Member -InputObject $_ -NotePropertyName Option -NotePropertyValue ([string]$Max) -Force
Write-Output " $Max) $($_.Name) ($($_.Arch))"
#Write-Output " $Max) $($_.Name) ($($_.Arch))"
Write-Output " $Max) $($_.Name)"
$Max += 1
}
@ -411,7 +412,8 @@ function Install-WSLInteractive {
}
'install-distro-confirm' {
Write-Output ''
Write-Host " :: WARNING: Are you sure you want to install $($Distro.Name) ($($Distro.Arch))? (yes/no) " -NoNewLine
#Write-Host " :: WARNING: Are you sure you want to install $($Distro.Name) ($($Distro.Arch))? (yes/no) " -NoNewLine
Write-Host " :: WARNING: Are you sure you want to install $($Distro.Name)? (yes/no) " -NoNewLine
$Input = $Host.UI.ReadLine()
switch ($Input) {
@ -433,7 +435,8 @@ function Install-WSLInteractive {
}
'install-distro' {
Write-Output ''
Write-Output "Installing $($Distro.Name) ($($Distro.Arch))..."
#Write-Output "Installing $($Distro.Name) ($($Distro.Arch))..."
Write-Output "Installing $($Distro.Name)..."
Install-WSL -LinuxDistribution ($Distro.Slug)
$Menu = 'exit'
}


Loading…
Cancel
Save