From 897349365a026806d0a8f5f918ffd896a2cb58f6 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Wed, 11 Nov 2020 14:34:50 +0300 Subject: [PATCH] Update Xcode.Installer.psm1 --- images/macos/helpers/Xcode.Installer.psm1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/macos/helpers/Xcode.Installer.psm1 b/images/macos/helpers/Xcode.Installer.psm1 index 7ccf9fb1..64d2381b 100644 --- a/images/macos/helpers/Xcode.Installer.psm1 +++ b/images/macos/helpers/Xcode.Installer.psm1 @@ -57,7 +57,7 @@ function Get-AvailableXcodeVersions { $semver = $stableSemver = [SemVer]::Parse($partStable) if ($partMajor) { # Convert 'beta 3' -> 'beta.3', 'Release Candidate' -> 'releasecandidate', 'GM Seed 2' -> 'gmseed.2' - $normalizedLabel = $parts[1].toLower() -replace " (\d)", '.$1' -replace " ([a-z])", '$1' + $normalizedLabel = $partMajor.toLower() -replace " (\d)", '.$1' -replace " ([a-z])", '$1' $semver = [SemVer]::new($stableSemver.Major, $stableSemver.Minor, $stableSemver.Patch, $normalizedLabel) }