Skip to content

Commit ad665f3

Browse files
authored
🐛 Fix .NET tools updates
1 parent 1a5532b commit ad665f3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Update-Everything.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,8 +312,8 @@ Begin
312312
Write-Step "$UP Updating dotnet global tools"
313313
& "$PSScriptRoot\Get-DotNetGlobalTools.ps1" |
314314
Where-Object {
315-
$availableVersion = dotnet tool search microsoft.dotnet-interactive |
316-
ForEach-Object {$_ -match "\A$([regex]::Escape('microsoft.dotnet-interactive'))\s\s+(\S+)\s\s" ?
315+
$availableVersion = dotnet tool search $PackageName |
316+
ForEach-Object {$_ -match "\A$([regex]::Escape($PackageName))\s\s+(\S+)\s\s" ?
317317
([version]$Matches[1]) : $null}
318318
$_.Version -lt $availableVersion
319319
} |

0 commit comments

Comments
 (0)