Skip to content

Commit 7ffe5b5

Browse files
authored
Update wsl.ps1
1 parent f70a674 commit 7ffe5b5

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

powershell/wsl.ps1

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,17 @@ if($true){
7070
break
7171
}
7272
4 {Write-Host "Archlinux" -ForegroundColor Blue
73-
if($false){
74-
git clone https://github.com/yuk7/ArchWSL.git
75-
76-
}else {
77-
Write-Host
78-
Write-Host "Git Install" .ForegroundColor Yellow
79-
winget install --id=Git.Git -e
73+
if($true){
74+
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
75+
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
8076
Clear-Host
8177
Write-Host
82-
Write-Host "Arch Linux"
78+
curl -O arch.zip https://github.com/yuk7/ArchWSL/releases/download/22.10.16.0/Arch.zip
79+
.\arch.zip
80+
81+
}else{
8382

8483
}
85-
Write-Host "Arch linux Installed"
86-
Write-Host
87-
break
8884
}
8985
5 {Write-Host "Opensuse"
9086
wsl --install -d opensuse-leap-15.5

0 commit comments

Comments
 (0)