mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-23 09:43:57 +08:00
Fix psmodulerestore
path when built in VSCode (#8075)
This commit is contained in:
parent
734a139457
commit
ef504e5212
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user