From d155a4d76eea62655b015194d35a5cd881eb8195 Mon Sep 17 00:00:00 2001 From: juanonsoftware Date: Sun, 20 Jul 2025 14:59:35 +0700 Subject: [PATCH] Update PS1 --- Scripts/VersionManager.ps1 | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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