Skip to content

Commit

Permalink
Merge pull request #2569 from carapace-sh/snapshot-commit
Browse files Browse the repository at this point in the history
include commit in snapshot
  • Loading branch information
rsteube authored Oct 24, 2024
2 parents 8afa450 + 13a4a8d commit 4e1fecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/carapace/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import (
"github.com/carapace-sh/carapace-bin/cmd/carapace/cmd"
)

var date string
var commit, date string
var version = "develop"

func main() {
if strings.HasSuffix(version, "-next") {
version += fmt.Sprintf(" (%v)", date)
version += fmt.Sprintf(" (%v) [%v]", date, commit)
}
cmd.Execute(version)
}

0 comments on commit 4e1fecd

Please sign in to comment.