Terminate the 'StartsWith' string in the badge existence check. (#9049)
* Terminate the 'StartsWith' string in the badge existence check. * Replace "string.Concat"
This commit is contained in:
parent
33561577c4
commit
07a15f9420
2 changed files with 6 additions and 5 deletions
|
@ -5,7 +5,8 @@
|
||||||
DependsOnTargets="CheckIfAllBuildsHavePublished;
|
DependsOnTargets="CheckIfAllBuildsHavePublished;
|
||||||
FinalizeBuild" />
|
FinalizeBuild" />
|
||||||
|
|
||||||
<Target Name="CheckIfAllBuildsHavePublished">
|
<Target Name="CheckIfAllBuildsHavePublished"
|
||||||
|
DependsOnTargets="SetBadgeProps">
|
||||||
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
|
<CheckIfAllBuildsHavePublished AccountKey="$(ArtifactCloudDropAccessToken)"
|
||||||
AccountName="$(ArtifactCloudDropAccountName)"
|
AccountName="$(ArtifactCloudDropAccountName)"
|
||||||
ContainerName="$(ArtifactContainerName)"
|
ContainerName="$(ArtifactContainerName)"
|
||||||
|
|
|
@ -71,7 +71,7 @@ namespace Microsoft.DotNet.Cli.Build
|
||||||
string name = Path.GetFileName(file);
|
string name = Path.GetFileName(file);
|
||||||
foreach (string img in badges.Keys)
|
foreach (string img in badges.Keys)
|
||||||
{
|
{
|
||||||
if ((name.StartsWith($"{img}")) && (name.EndsWith(".svg")))
|
if ((name.StartsWith($"{img}_")) && (name.EndsWith(".svg")))
|
||||||
{
|
{
|
||||||
badges[img] = true;
|
badges[img] = true;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue