Explorar o código

remove extra space in ssh authentication message

Luka Dornhecker %!s(int64=10) %!d(string=hai) anos
pai
achega
1988c0993d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      cmd/serve.go

+ 1 - 1
cmd/serve.go

@@ -102,7 +102,7 @@ func runServ(c *cli.Context) {
 
 	cmd := os.Getenv("SSH_ORIGINAL_COMMAND")
 	if cmd == "" {
-		println("Hi", user.Name, "! You've successfully authenticated, but Gogs does not provide shell access.")
+		fmt.Printf("Hi, %s! You've successfully authenticated, but Gogs does not provide shell access.\n", user.Name)
 		if user.IsAdmin {
 			println("If this is unexpected, please log in with password and setup Gogs under another user.")
 		}