mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00: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:
@@ -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)
|
||||
{
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user