From e803d3da09f9815878a1f6c414b50481c6fadc2a Mon Sep 17 00:00:00 2001 From: Russ Magee Date: Wed, 26 Feb 2020 20:25:01 -0800 Subject: [PATCH] Bumped version, xc reports -v correctly Signed-off-by: Russ Magee --- Makefile | 2 +- xs/xs.go | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index b919883..22e6693 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION := 0.8.20 +VERSION := 0.8.21 .PHONY: lint vis clean common client server passwd subpkgs install uninstall reinstall ## Tag version of binaries with build info wrt. diff --git a/xs/xs.go b/xs/xs.go index 07f64d5..452157f 100755 --- a/xs/xs.go +++ b/xs/xs.go @@ -727,6 +727,11 @@ func main() { } flag.Parse() + if vopt { + fmt.Printf("version %s (%s)\n", version, gitCommit) + exitWithStatus(0) + } + if cpuprofile != "" { f, err := os.Create(cpuprofile) if err != nil { @@ -802,11 +807,6 @@ func main() { exitWithStatus(0) } - if vopt { - fmt.Printf("version %s (%s)\n", version, gitCommit) - exitWithStatus(0) - } - if len(cmdStr) != 0 && (len(copySrc) != 0 || len(copyDst) != 0) { log.Fatal("incompatible options -- either cmd (-x) or copy ops but not both") }