mirror of
https://github.com/PowerShell/PowerShell.git
synced 2024-11-30 21:35:11 +08:00
Release build fixes (#5317)
small fixes found while doing current work item -replace expects a regex when I wanted to do a literal replace. Have Sync-PSTags fix any issues it find
This commit is contained in:
parent
98244a89f9
commit
74ebde9d3c
@ -167,7 +167,7 @@ function Start-PSPackage {
|
||||
|
||||
# Replace binaries with crossgen'ed binaires from publish folder.
|
||||
Get-ChildItem -Recurse $Source | ForEach-Object {
|
||||
$relativePath = $_.FullName -replace $Source, ''
|
||||
$relativePath = $_.FullName.Replace($Source, '')
|
||||
$publishPath = Join-Path $publishSource -ChildPath $relativePath
|
||||
if (Test-Path -Path $publishPath)
|
||||
{
|
||||
|
@ -54,7 +54,7 @@ try{
|
||||
$env:platform = $null
|
||||
|
||||
Write-Verbose "Sync'ing Tags..." -verbose
|
||||
Sync-PSTags
|
||||
Sync-PSTags -AddRemoteIfMissing
|
||||
|
||||
Write-Verbose "Bootstrapping powershell build..." -verbose
|
||||
Start-PSBootstrap -Force -Package
|
||||
|
Loading…
Reference in New Issue
Block a user