1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-19 00:56:13 +02:00

fix: version output (#684)

This commit is contained in:
figsoda 2023-06-27 07:17:43 -04:00 committed by GitHub
parent 01f8a9ae95
commit 4afeb94599
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ func main() {
}
func buildVersion(version, commit, date, builtBy string) string {
result := "nfpm version " + version
result := version
if commit != "" {
result = fmt.Sprintf("%s\ncommit: %s", result, commit)
}