refactor: hide git commit if empty
parent
221663d4f9
commit
a1cdb179d7
|
@ -41,7 +41,12 @@ func (a *action) RunVersion(c *cli.Context) error {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%s-%s\n", info.MainModuleVersion, info.GitCommit)
|
if info.GitCommit != "" {
|
||||||
|
fmt.Printf("%s-%s\n", info.MainModuleVersion, info.GitCommit)
|
||||||
|
} else {
|
||||||
|
fmt.Println(info.MainModuleVersion)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue