diff --git a/Scripts/VersionManager.ps1 b/Scripts/VersionManager.ps1 index 3258c9f..cf73487 100644 --- a/Scripts/VersionManager.ps1 +++ b/Scripts/VersionManager.ps1 @@ -37,12 +37,11 @@ function New-Tag function Get-CurrentVersion { + $major = 0; $minor = 1 $tags = Get-GitTags if ($tags.Count -gt 0) { - $major = 0; $minor = 1 - foreach($tag in $tags) { $pattern = '^v(\d+)\.(\d+)\.\d+$' @@ -59,11 +58,9 @@ function Get-CurrentVersion } } } - - return "$major.$minor" } - return "0.1" + return "$major.$minor" } function Get-NewPatch