Skip to content

Commit

Permalink
Improve version output.
Browse files Browse the repository at this point in the history
  • Loading branch information
wi1dcard committed Jan 9, 2020
1 parent ed053da commit 0059632
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ LAST_TAG = $(shell git describe --tags --abbrev=0 HEAD^)
COMMIT = $(shell git rev-parse --short HEAD)
FULL_COMMIT = $(shell git rev-parse HEAD)
RELEASE_NOTES = `git log ${LAST_TAG}..HEAD --oneline --decorate`
DATE = $(shell date +%Y-%m-%d)
DATE = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ")
DOCKER_REPO = wi1dcard/v2ray-exporter

export DOCKER_CLI_EXPERIMENTAL=enabled
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ func main() {
os.Exit(0)
}

fmt.Printf("V2Ray Exporter %v-%v (built %v)\n", buildVersion, buildCommit, buildDate)

if opts.Version {
fmt.Printf("V2Ray Exporter %v (commit %v, built %v)\n", buildVersion, buildCommit, buildDate)
os.Exit(0)
}

Expand Down

0 comments on commit 0059632

Please sign in to comment.