Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-12 16:55:13 +0300
committerNick Thomas <nick@gitlab.com>2018-10-12 16:55:13 +0300
commit786e3c5b03978b85336b73dbce743f4a707f8595 (patch)
tree5835b95c4aaa24d5f8a5245b57cbb04a23e85b86
parentaf714e5dae4b516f8ad0b14d594969aaef76e0a1 (diff)
Fix version display to include a newline
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 20979aa8..10907c01 100644
--- a/main.go
+++ b/main.go
@@ -348,7 +348,7 @@ func createAdminHTTPSListener(config *appConfig) []io.Closer {
func printVersion(showVersion bool, version string) {
if showVersion {
- fmt.Fprintf(os.Stderr, version)
+ fmt.Fprintf(os.Stderr, "%s\n", version)
os.Exit(0)
}
}