We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca256d5 commit 8fecb98Copy full SHA for 8fecb98
devVersion.ps1
@@ -1,4 +1,10 @@
1
$latestTag = git describe --tags --abbrev=0
2
+
3
+# Remove the leading 'v' character if present
4
+if ($latestTag.StartsWith("v")) {
5
+ $latestTag = $latestTag.Substring(1)
6
+}
7
8
# Split the version string into major, minor, build, and revision components
9
$versionParts = $latestTag.Split('.')
10
$major = $versionParts[0]
0 commit comments