Correct usages of Write-Output with Write-Host

This commit is contained in:
Nate McMaster 2017-06-21 16:20:51 -07:00
parent 3471d43796
commit 38f8f5b548
3 changed files with 19 additions and 19 deletions

View file

@ -15,7 +15,7 @@ try {
if (Test-Path $stage2) {
$env:PATH="$stage2;$env:PATH"
} else {
Write-Output "You don't have a dev build in the 'artifacts\$rid\stage2' folder!"
Write-Host "You don't have a dev build in the 'artifacts\$rid\stage2' folder!"
}
dotnet @args

View file

@ -85,7 +85,7 @@ $VersionRegEx="/\d+\.\d+[^/]+/"
$OverrideNonVersionedFiles=$true
function Say($str) {
Write-Output "dotnet-install: $str"
Write-Host "dotnet-install: $str"
}
function Say-Verbose($str) {
@ -470,7 +470,7 @@ if ($IsSdkInstalled) {
New-Item -ItemType Directory -Force -Path $InstallRoot | Out-Null
$installDrive = $((Get-Item $InstallRoot).PSDrive.Name);
Write-Output "${installDrive}:";
Write-Host "${installDrive}:";
$free = Get-CimInstance -Class win32_logicaldisk | where Deviceid -eq "${installDrive}:"
if ($free.Freespace / 1MB -le 100 ) {
Say "There is not enough disk space on drive ${installDrive}:"

View file

@ -12,5 +12,5 @@ if (Test-Path $stage2) {
$env:PATH="$stage2;$env:PATH"
}
} else {
Write-Output "You don't have a dev build in the 'artifacts\win10-x64\stage2' folder!"
Write-Host "You don't have a dev build in the 'artifacts\win10-x64\stage2' folder!"
}