From ba66def380a504fd91e43980382e46eb4d5fc78e Mon Sep 17 00:00:00 2001 From: Denis Vaumoron Date: Fri, 31 May 2024 01:35:21 +0200 Subject: [PATCH] fix --- cmd/go/last.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/go/last.go b/cmd/go/last.go index c783e0b..5d4c9ce 100644 --- a/cmd/go/last.go +++ b/cmd/go/last.go @@ -77,7 +77,8 @@ func main() { cmdArgs := os.Args[1:] if versionMessage != "" && len(cmdArgs) > 0 && cmdArgs[0] == versionCmd { - fmt.Println(versionMessage) + fmt.Print(versionMessage) + return } runGo(conf.rootPath, cmdArgs, stdoutSetter)