config+lnd+lncli: add commit back to version string

This commit is contained in:
Oliver Gugger committed 2020-04-14 15:51:44 +02:00
1 parent ec5bfd3df7
commit 1e3b0672d7
3 files changed
+6 -4

No files matched your search

+2 -1
View File
@@ -478,7 +478,8 @@ func loadConfig() (*config, error) {
appName = strings.TrimSuffix(appName, filepath.Ext(appName))
usageMessage := fmt.Sprintf("Use %s -h to show usage", appName)
if preCfg.ShowVersion {
fmt.Println(appName, "version", build.Version())
fmt.Println(appName, "version", build.Version(),
"commit="+build.Commit)
os.Exit(0)
}