From b6b5ea3ea2e4f27d858261484c5212716e5b2fc7 Mon Sep 17 00:00:00 2001 From: LoganDark Date: Thu, 13 May 2021 16:09:49 +0200 Subject: [PATCH] prevent text from being obscured by the loading box --- install-wsl.psm1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install-wsl.psm1 b/install-wsl.psm1 index f34f991..46af85e 100644 --- a/install-wsl.psm1 +++ b/install-wsl.psm1 @@ -201,6 +201,8 @@ Workflow Install-WSL { } } + Write-Information "`n`n`n`n`n`n`n" + $retrying = $True while ($retrying) { $tempFile = InlineScript { New-TemporaryFile } @@ -208,7 +210,6 @@ Workflow Install-WSL { $tempFile = $tempFile.FullName -replace '$','.zip' try { - Write-Information '' Write-Information "Attempting to download distribution to $tempFile..." $data = InlineScript { @@ -251,7 +252,7 @@ Workflow Install-WSL { Remove-Item -LiteralPath $tempFile -ErrorAction SilentlyContinue # PSItem is contextual and can't be read from the InlineScript - $theError = $PSItem.Message + $theError = $PSItem Write-Information "Error: $theError"