mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fixes
This commit is contained in:
@@ -893,6 +893,10 @@ function New-PSOptions {
|
||||
# So we, will change the RID to win7-<arch>
|
||||
$Runtime = $RID -replace "win\d+", "win7"
|
||||
|
||||
if ($Runtime -like 'win-*') {
|
||||
$Runtime = $Runtime -replace 'win-', 'win7-'
|
||||
}
|
||||
|
||||
Write-Verbose -Verbose "Setting runtime to '$Runtime'"
|
||||
}
|
||||
|
||||
|
||||
@@ -801,11 +801,11 @@ function Update-PSSignedBuildFolder
|
||||
|
||||
# Agents seems to be on a case sensitive file system
|
||||
if ($IsLinux) {
|
||||
$relativePath = $signedFileObject.Replace($SignedFilesPathNormalized, '')
|
||||
$relativePath = $signedFilePath.Replace($SignedFilesPathNormalized, '')
|
||||
} else {
|
||||
Write-Verbose -Verbose "Normalizing path"
|
||||
Write-Verbose -Verbose "signedFileObject = $signedFileObject"
|
||||
$relativePath = $signedFileObject.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '')
|
||||
Write-Verbose -Verbose "signedFileObject = $signedFilePath"
|
||||
$relativePath = $signedFilePath.ToLowerInvariant().Replace($SignedFilesPathNormalized.ToLowerInvariant(), '')
|
||||
}
|
||||
|
||||
Write-Verbose -Verbose "relativePath = $relativePath"
|
||||
|
||||
Reference in New Issue
Block a user