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")