summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-10-15 07:54:42 -0500
committerJeff Carr <[email protected]>2025-10-15 07:54:42 -0500
commit3af7b72d9acb35c1ed88957a0645df621be5b7cc (patch)
tree581965310860eb6a4bb7325300d2f759e304c355
parent2d16120dc2d924fe6214388f3fc8852b6f99e64c (diff)
was wrongv0.0.165
-rw-r--r--currentVersions.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/currentVersions.go b/currentVersions.go
index 8675e82..8a7d19f 100644
--- a/currentVersions.go
+++ b/currentVersions.go
@@ -130,7 +130,7 @@ func (repo *Repo) DebianCurrentVersion(buildnum int) string {
// .deb files don't like "v0.0.90-1-g778234j"
// so remove the end so it's "0.0.90-1"
parts := strings.Split(curver, "-")
- if len(parts) > 0 {
+ if len(parts) > 1 {
curver = strings.Join(parts[0:2], "-")
}