Skip to content

Commit 9054f6a

Browse files
victor-timofeindeloof
authored andcommitted
Fix json format for version command
Signed-off-by: Victor Timofei <[email protected]>
1 parent 0ef4b90 commit 9054f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/compose/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func runVersion(opts versionOptions) {
5757
return
5858
}
5959
if opts.format == formatter.JSON {
60-
fmt.Printf(`{"version":%q}\n`, internal.Version)
60+
fmt.Printf("{\"version\":%q}\n", internal.Version)
6161
return
6262
}
6363
fmt.Println("Docker Compose version", internal.Version)

0 commit comments

Comments
 (0)