mirror of
https://github.com/octoleo/restic.git
synced 2024-11-25 14:17:42 +00:00
Use different function to be more consistent with other code
This commit is contained in:
parent
ab23d033b6
commit
10cbc169c1
@ -35,13 +35,11 @@ Exit status is 0 if the command was successful, and non-zero if there was any er
|
|||||||
GoTarget: runtime.GOOS + "/" + runtime.GOARCH,
|
GoTarget: runtime.GOOS + "/" + runtime.GOARCH,
|
||||||
}
|
}
|
||||||
|
|
||||||
jsonB, err := json.Marshal(jsonS)
|
err := json.NewEncoder(globalOptions.stdout).Encode(jsonS)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
Warnf("Marshall failed: %v\n", err)
|
Warnf("Encode failed: %v\n", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Println(string(jsonB))
|
|
||||||
} else {
|
} else {
|
||||||
fmt.Printf("restic %s compiled with %v on %v/%v\n",
|
fmt.Printf("restic %s compiled with %v on %v/%v\n",
|
||||||
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
version, runtime.Version(), runtime.GOOS, runtime.GOARCH)
|
||||||
|
Loading…
Reference in New Issue
Block a user