Skip to content

Commit

Permalink
Update eng\scripts\Initialize-VcpkgRelease.ps1 regex for quoted REF
Browse files Browse the repository at this point in the history
  • Loading branch information
WangWeiLin-MV committed Apr 11, 2024
1 parent 39e4eeb commit 29e3404
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/scripts/Initialize-VcpkgRelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ $newContent = $portFileContent -replace '(SHA512\s+)0', "`${1}$sha512"

if ($DailyReleaseRef) {
Write-Verbose "Overriding REF with test release ref: $DailyReleaseRef"
$newContent = $newContent -replace '(?m)^(\s+)REF azure.*$', "`${1}REF $DailyReleaseRef"
$newContent = $newContent -replace '(?m)^(\s+)REF \"azure.*\"$', "`${1}REF $DailyReleaseRef"
}

$newContent | Set-Content $portfileLocation -NoNewLine

0 comments on commit 29e3404

Please sign in to comment.