Skip to content

Commit

Permalink
-v flag
Browse files Browse the repository at this point in the history
  • Loading branch information
jakopako committed May 19, 2024
1 parent c58fb36 commit 61fd416
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func main() {
if *printVersion {
buildInfo, ok := debug.ReadBuildInfo()
if ok {
if buildInfo.Main.Version != "" {
if buildInfo.Main.Version != "" && buildInfo.Main.Version != "(devel)" {
fmt.Println(buildInfo.Main.Version)
return
}
Expand Down

0 comments on commit 61fd416

Please sign in to comment.