Skip to content
Merged
Changes from all 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
8 changes: 7 additions & 1 deletion build.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,13 @@ Fix steps:
}

# Get the folder path where pwsh.exe is located.
$publishPath = Split-Path $Options.Output -Parent
if ((Split-Path $Options.Output -Leaf) -like "pwsh*") {
$publishPath = Split-Path $Options.Output -Parent
}
else {
$publishPath = $Options.Output
}

try {
# Relative paths do not work well if cwd is not changed to project
Push-Location $Options.Top
Expand Down