mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
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:
1 parent
9885917481
commit
f62dd4bf54
1 file changed
+2
-4
+2
-4
@@ -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
|
||||
|
||||
Reference in new issue
Block a user