Conditionally add output argument
This commit is contained in:
parent
b124d1815d
commit
b29d5dc8db
@ -554,7 +554,9 @@ Fix steps:
|
||||
|
||||
try {
|
||||
Push-Location $globalToolSrcFolder
|
||||
$Arguments += "--output", $publishPath
|
||||
if ($Arguments -notcontains '--output') {
|
||||
$Arguments += "--output", $publishPath
|
||||
}
|
||||
Write-Log -message "Run dotnet $Arguments from $PWD to build global tool entry point"
|
||||
Start-NativeExecution { dotnet $Arguments }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user