diff --git a/cmd/restic/cmd_version.go b/cmd/restic/cmd_version.go index 669c356be..677079a50 100644 --- a/cmd/restic/cmd_version.go +++ b/cmd/restic/cmd_version.go @@ -16,7 +16,7 @@ and the version of this software. `, DisableAutoGenTag: true, Run: func(cmd *cobra.Command, args []string) { - fmt.Printf("restic %s\ncompiled with %v on %v/%v\n", + fmt.Printf("restic %s compiled with %v on %v/%v\n", version, runtime.Version(), runtime.GOOS, runtime.GOARCH) }, } diff --git a/cmd/restic/main.go b/cmd/restic/main.go index 44b74afbd..ca1067cda 100644 --- a/cmd/restic/main.go +++ b/cmd/restic/main.go @@ -66,7 +66,7 @@ func init() { func main() { debug.Log("main %#v", os.Args) - debug.Log("restic %s, compiled with %v on %v/%v", + debug.Log("restic %s compiled with %v on %v/%v", version, runtime.Version(), runtime.GOOS, runtime.GOARCH) err := cmdRoot.Execute()