From 7836f2ffbfdb7b141a87d8510c4cb1c52286c1c3 Mon Sep 17 00:00:00 2001 From: Justin Hawkins Date: Sun, 16 Jan 2022 23:01:15 +1030 Subject: [PATCH] No leading v --- build_release.pl | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build_release.pl b/build_release.pl index 7f0ce25..51cc0a9 100755 --- a/build_release.pl +++ b/build_release.pl @@ -8,7 +8,7 @@ open my $fh, "<", "main.go" || die $!; my $version; while (<$fh>) { # CurrentVersion: "v0.04" - $version = $1 if /CurrentVersion\s*=\s*"(v[\d\.]+)"/; + $version = $1 if /CurrentVersion\s*=\s*"([\d\.]+)"/; } close $fh; diff --git a/main.go b/main.go index 855817f..28272c1 100644 --- a/main.go +++ b/main.go @@ -11,7 +11,7 @@ import ( "github.com/spf13/viper" ) -var CurrentVersion = "v0.0.1" +var CurrentVersion = "0.0.1" func main() { isServer := flag.Bool("server", false, "Run netgiv in server mode")