Bumped version, xc reports -v correctly

Signed-off-by: Russ Magee <rmagee@gmail.com>
This commit is contained in:
Russ Magee 2020-02-26 20:25:01 -08:00
parent 0c1d5e036e
commit e803d3da09
2 changed files with 6 additions and 6 deletions

View File

@ -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.

View File

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