diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-03-16 00:02:16 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-16 00:02:16 -0400 |
commit | 772c6c22065efdba8ef98bc99f47c4fa628049c9 (patch) | |
tree | 0261608fc087d07e074574bcc88e62c298fe4807 | |
parent | fa0d3c564a0868e79d46d0bfbfea40a98456f2b4 (diff) | |
parent | 45df70ec1e92e6f23ad7f7ef5214ea2181f7bcb1 (diff) | |
download | podman-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.go | 8 |
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}} |