Skip to content

Commit db03fc2

Browse files
committed
FIx typos
1 parent a591288 commit db03fc2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

scripts/CreateChocoPackage.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Creates the Chocolatey package version based on assembly version,
2+
# Creates the Chocolatey package, sets the version based on assembly version,
33
# and whether there is already a CI revision set.
44
#
55
param([String]$pat, [String]$targetPackageName = 'typewriter')
@@ -40,21 +40,21 @@ $packageFeedNormalizedVersionParts = $packageFeedNormalizedVersion.Split('-')
4040

4141
# Check whether the assembly version and feed version match.
4242
if ($packageFeedNormalizedVersionParts[0] -eq $assemblySemver) {
43-
# The assembly version and feed version match.
43+
# The assembly version and feed version match. We'll need to either set the initial ci revision or increment it.
4444

4545
# Check whether the latest package in the feed has been updated with a ci release, eg '-ci*'
4646
if ($packageFeedNormalizedVersionParts.length -eq 1) {
47-
# Append the starting ci revision.
47+
# Append the initial ci revision.
4848
$finalPackageVersion = $assemblySemver + $ciToken + "0"
4949
}
5050
else {
51-
# increment the ci revision, eg "0.1.2-ci3" become "0.1.2-ci4"
51+
# Increment the ci revision, eg "0.1.2-ci3" becomes "0.1.2-ci4"
5252
$number = $packageFeedNormalizedVersionParts[1].Remove(0, 2) -as [int] # removing 'ci'
5353
$finalPackageVersion = $assemblySemver + $ciToken + ($number += 1)
5454
}
5555

5656
}
57-
# The don't match so just use the assembly version.
57+
# They don't match so just use the assembly version.
5858
else {
5959
$finalPackageVersion = $assemblySemver
6060
}

0 commit comments

Comments
 (0)