From 9f0acbbffe9390e5507a01bbc378a21b66ad55e0 Mon Sep 17 00:00:00 2001 From: Szymon Osiecki Date: Thu, 27 Jun 2024 07:22:21 +0200 Subject: [PATCH] refactor: messages coloring --- .assets/provision/update_psresources.ps1 | 2 +- wsl/wsl_setup.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.assets/provision/update_psresources.ps1 b/.assets/provision/update_psresources.ps1 index e3a45ec0..68b9611d 100755 --- a/.assets/provision/update_psresources.ps1 +++ b/.assets/provision/update_psresources.ps1 @@ -32,7 +32,7 @@ foreach ($mod in $dupedModules) { Write-Host "`n`e[4m$($mod)`e[24m - $($allVersions.Count) versions of the module found, latest: `e[1mv$latestVersion`e[22m" -ForegroundColor DarkYellow Write-Host 'uninstalling...' foreach ($v in $allVersions.Where({ $_.Version -ne $latestVersion })) { - Write-Host "- `e[95mv$($v.Version)`e[0m" + Write-Host "- `e[0;90mv$($v.Version)`e[0m" Uninstall-PSResource @param -Name $v.Name -Version ($v.Prerelease ? "$($v.Version)-$($v.Prerelease)" : "$($v.Version)") -SkipDependencyCheck } } diff --git a/wsl/wsl_setup.ps1 b/wsl/wsl_setup.ps1 index 8e7fbe6f..dc501f74 100644 --- a/wsl/wsl_setup.ps1 +++ b/wsl/wsl_setup.ps1 @@ -555,5 +555,5 @@ process { end { Pop-Location - Write-Host "`n<< WSL setup completed >>`n" -ForegroundColor Green + Write-Host "`n`e[1;95m<< WSL setup completed >>`e[0m`n" }