Skip to content

Commit d9833c4

Browse files
committed
Fix typo when checking for usable versions of dotnet
1 parent 4d2bf72 commit d9833c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.psm1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ function Test-SuitableDotnet {
386386
$availableVersions = $( Get-InstalledCliVersion),
387387
$requiredVersion = $( Get-GlobalJsonSdkVersion )
388388
)
389+
389390
if ( $requiredVersion -is [String] -or $requiredVersion -is [Version] ) {
390391
$requiredVersion = ConvertTo-PortableVersion "$requiredVersion"
391392
}
@@ -406,7 +407,7 @@ function Test-SuitableDotnet {
406407
}
407408
$requiredPatch = $requiredVersion.Patch
408409
$possiblePatch = $version.Patch
409-
if ( $requiredPatch -gt $possiblePath ) {
410+
if ( $requiredPatch -gt $possiblePatch ) {
410411
continue
411412
}
412413
if ( ($requiredPatch - $possiblePatch) -ge 100 ) {

0 commit comments

Comments
 (0)