From 4b5b7b38a26156c639038ddfdb10b971ac3d03f4 Mon Sep 17 00:00:00 2001 From: Mario1159 Date: Wed, 6 Sep 2023 15:02:42 -0300 Subject: [PATCH] Check WSL updates and force default distribution --- scripts/wsl_start.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/wsl_start.ps1 b/scripts/wsl_start.ps1 index 2b5c496..e53617e 100644 --- a/scripts/wsl_start.ps1 +++ b/scripts/wsl_start.ps1 @@ -1,6 +1,12 @@ param([switch] $remote = $false) Write-Host "OSIC-Stacks Container Creation" -ForegroundColor Green +Write-Host "Checking WSL updates" -ForegroundColor DarkGray + +Write-Host "" +wsl --update +Write-Host "" + Write-Host "Please select an image index:" $imageoptions = @( @@ -38,7 +44,7 @@ $dockercommand = ("docker run -d " + "-e XDG_RUNTIME_DIR=/mnt/wslg " + $image) -wsl bash -ic $dockercommand +wsl -d Ubuntu bash -ic $dockercommand if ($?) { Write-Host "Container created successfully!" -ForegroundColor Green