Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion eng/dotnetup-shared.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ function Invoke-DotnetupNativeCommand([scriptblock]$Command) {
$ErrorActionPreference = 'Continue'
$PSNativeCommandUseErrorActionPreference = $false
try {
& $Command
# Write command output to the host and prevent it from being returned alongside the exit code
& $Command | Out-Host
return $LASTEXITCODE
}
catch {
Expand Down
Loading