Allow Start-PSBuild -Output to take absolute path (#2398)
There was no point to using Join-Path here, but it made it impossible to specify absolute paths (or any path outside of the PowerShell repo).
This commit is contained in:
parent
9885917481
commit
f62dd4bf54
|
@ -197,7 +197,7 @@ function Start-PSBuild {
|
|||
$Arguments += "build"
|
||||
}
|
||||
if ($Output) {
|
||||
$Arguments += "--output", (Join-Path $PSScriptRoot $Output)
|
||||
$Arguments += "--output", $Output
|
||||
}
|
||||
elseif ($SMAOnly) {
|
||||
$Arguments += "--output", (Split-Path $script:Options.Output)
|
||||
|
@ -490,9 +490,7 @@ function New-PSOptions {
|
|||
}
|
||||
|
||||
# Build the Output path
|
||||
if ($Output) {
|
||||
$Output = Join-Path $PSScriptRoot $Output
|
||||
} else {
|
||||
if (!$Output) {
|
||||
$Output = [IO.Path]::Combine($Top, "bin", $Configuration, $Framework, $Runtime)
|
||||
|
||||
# Publish injects the publish directory
|
||||
|
|
Loading…
Reference in a new issue