aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-03-16 00:02:16 -0400
committerGitHub <noreply@github.com>2022-03-16 00:02:16 -0400
commit772c6c22065efdba8ef98bc99f47c4fa628049c9 (patch)
tree0261608fc087d07e074574bcc88e62c298fe4807
parentfa0d3c564a0868e79d46d0bfbfea40a98456f2b4 (diff)
parent45df70ec1e92e6f23ad7f7ef5214ea2181f7bcb1 (diff)
downloadpodman-772c6c22065efdba8ef98bc99f47c4fa628049c9.tar.gz
podman-772c6c22065efdba8ef98bc99f47c4fa628049c9.tar.bz2
podman-772c6c22065efdba8ef98bc99f47c4fa628049c9.zip
Merge pull request #13519 from Luap99/version-newline
fix empty newline in version output
-rw-r--r--cmd/podman/system/version.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/cmd/podman/system/version.go b/cmd/podman/system/version.go
index 6239482b5..9fb4a966a 100644
--- a/cmd/podman/system/version.go
+++ b/cmd/podman/system/version.go
@@ -89,9 +89,7 @@ Client:\tPodman Engine
Version:\t{{.Version}}
API Version:\t{{.APIVersion}}
Go Version:\t{{.GoVersion}}
-{{if .GitCommit -}}
- Git Commit:\t{{.GitCommit}}
-{{- end}}
+{{if .GitCommit -}}Git Commit:\t{{.GitCommit}}\n{{end -}}
Built:\t{{.BuiltTime}}
OS/Arch:\t{{.OsArch}}
{{- end}}
@@ -102,9 +100,7 @@ Server:\tPodman Engine
Version:\t{{.Version}}
API Version:\t{{.APIVersion}}
Go Version:\t{{.GoVersion}}
-{{if .GitCommit -}}
- Git Commit:\t{{.GitCommit}}
-{{- end}}
+{{if .GitCommit -}}Git Commit:\t{{.GitCommit}}\n{{end -}}
Built:\t{{.BuiltTime}}
OS/Arch:\t{{.OsArch}}
{{- end}}{{- end}}