From 03dc373978409d5644405b358e59ca83b8f53992 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Tue, 12 Nov 2024 12:03:29 +0100 Subject: [PATCH] bin: increment patch version --- bin/bump_version.nim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/bump_version.nim b/bin/bump_version.nim index 7f7531ed..fda28b86 100755 --- a/bin/bump_version.nim +++ b/bin/bump_version.nim @@ -178,9 +178,8 @@ proc bumpVersionFile(versionFile: string): Version = let pkgVersion = readFile(versionFile) result = Version.init() if pkgVersion.scanf("$i.$i.$i\n$.", - result.major, result.minor, result.patch, - result.pre, result.n): - inc result.n + result.major, result.minor, result.patch): + inc result.patch createBranchAndCheckout(result) writeFile(versionFile, $result & "\n") else: