Explicit Write-Output

This commit is contained in:
Josh Willox
2020-11-18 17:52:56 +11:00
parent 64de359efd
commit 84114b8752
+3 -3
View File
@@ -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++