From 7aa94ca8e2d2dd85f7124cac2aca379723f7fe9f Mon Sep 17 00:00:00 2001 From: Baipyrus Date: Mon, 25 Nov 2024 12:00:30 +0100 Subject: [PATCH] provide additional user feedback with consistent style --- util/winget.psm1 | 2 +- util/wsl.psm1 | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/util/winget.psm1 b/util/winget.psm1 index 633d521..be154e2 100644 --- a/util/winget.psm1 +++ b/util/winget.psm1 @@ -15,7 +15,7 @@ function InstallWinget Invoke-WebRequest $url -OutFile $setup } - Write-Host "Installing WinGet app package ..." + Write-Host "Installing WinGet app package..." Add-AppxPackage -Path $setup } diff --git a/util/wsl.psm1 b/util/wsl.psm1 index 1128e30..db417e6 100644 --- a/util/wsl.psm1 +++ b/util/wsl.psm1 @@ -1,8 +1,9 @@ function InstallWSL { - # Reference: https://learn.microsoft.com/en-us/windows/wsl/install-manual - Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart - Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart + Write-Host "Enabling and downloading required Windows Features..." + Enable-WindowsOptionalFeature -Online -FeatureName "Microsoft-Windows-Subsystem-Linux" -All -NoRestart | Out-Null + Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform" -All -NoRestart | Out-Null + Write-Host "Installing WSL2..." wsl.exe --install --no-distribution wsl.exe --set-default-version 2 }