From 84114b87528033b42dec747a4f700f2ab290de96 Mon Sep 17 00:00:00 2001 From: Josh Willox <39120423+jcwillox@users.noreply.github.com> Date: Wed, 18 Nov 2020 17:52:56 +1100 Subject: [PATCH] Explicit Write-Output --- src/posh-winfetch.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/posh-winfetch.ps1 b/src/posh-winfetch.ps1 index 7435a0f..d0f22bd 100644 --- a/src/posh-winfetch.ps1 +++ b/src/posh-winfetch.ps1 @@ -104,9 +104,9 @@ if ($genconf) { Write-Host 'ERROR: configuration file already exists!' -f red exit 1 } - "INFO: downloading default config to '$config'." + Write-Output "INFO: downloading default config to '$config'." Invoke-WebRequest -Uri $defaultconfig -OutFile $config -UseBasicParsing - 'INFO: successfully completed download.' + Write-Output 'INFO: successfully completed download.' exit 0 } @@ -421,7 +421,7 @@ while ($counter -lt $info.Count) { } if ($item_content -notlike '*disabled') { - " ${logo_line}$e[40G${item_title}${item_content}" + Write-Output " ${logo_line}$e[40G${item_title}${item_content}" } $counter++