diff --git a/get-new-tool-versions/get-new-tool-versions.ps1 b/get-new-tool-versions/get-new-tool-versions.ps1 index 91a739f..e2f0474 100644 --- a/get-new-tool-versions/get-new-tool-versions.ps1 +++ b/get-new-tool-versions/get-new-tool-versions.ps1 @@ -19,10 +19,9 @@ $VersionsFromManifest = $ToolVersionParser.GetUploadedVersions() $VersionsToBuild = $VersionsFromDist | Where-Object { $VersionsFromManifest -notcontains $_ } if ($VersionsToBuild) { - $availableVersions = $VersionsToBuild -join "," - $toolVersions = $availableVersions.Replace(",",", ") - Write-Host "The following versions are available to build:`n$toolVersions" - Write-Host "##vso[task.setvariable variable=TOOL_VERSIONS;isOutput=true]$toolVersions" + $availableVersions = $VersionsToBuild -join ", " + Write-Host "The following versions are available to build:`n${availableVersions}" + Write-Host "##vso[task.setvariable variable=TOOL_VERSIONS;isOutput=true]${availableVersions}" } else { Write-Host "There aren't versions to build" }