Skip to content

Commit 5442277

Browse files
committed
so you have to escape dash with a \ but you CANT escape _ with a \. got it. thanks pwsh
1 parent c1a6a4e commit 5442277

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/pipelines/templates/steps/smoke-test-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232
$packages = Get-ChildItem "$(Pipeline.Workspace)/${{ parameters.ArtifactName }}/${{ parameters.Artifact.name }}/*.tar.gz"
3333
Write-Host "Artifacts found:"
3434
$artifacts = $packages | ForEach-Object {
35-
if ($_.Name -match "([a-zA-Z\-\_]+)\-(.*).tar.gz") {
35+
if ($_.Name -match "([a-zA-Z\-_]+)\-(.*).tar.gz") {
3636
Write-Host "$($matches[1]): $($matches[2])"
3737
return @{ "name" = $matches[1].ToString().Replace("_", "-"); "version" = $matches[2] }
3838
}

0 commit comments

Comments
 (0)