Skip to content

Commit

Permalink
Check for empty version var when local
Browse files Browse the repository at this point in the history
  • Loading branch information
krzko committed Oct 19, 2022
1 parent af17df7 commit 2bbba6a
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 2bbba6a

Please sign in to comment.