Skip to content

Commit

Permalink
Merge pull request #54 from krzko/fix/otel-dep-2
Browse files Browse the repository at this point in the history
Check for empty version var when local
  • Loading branch information
krzko authored Oct 19, 2022
2 parents af17df7 + 2bbba6a commit 222436e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,13 @@ func New(version, commit, date string) *cli.App {

flags := getGlobalFlags()

v := fmt.Sprintf("v%v-%v (%v)", version, commit, date)
var v string
if version == "" {
v = "develop"
} else {
v = fmt.Sprintf("v%v-%v (%v)", version, commit, date)
}

app := &cli.App{
Name: name,
Usage: "A tool to generate synthetic OpenTelemetry logs, metrics and traces",
Expand Down

0 comments on commit 222436e

Please sign in to comment.