From b757b39635a79d0e524717329321daf623b949cd Mon Sep 17 00:00:00 2001 From: nexustar Date: Sat, 2 Apr 2022 15:07:25 +0800 Subject: [PATCH] tiup: fix print duplicated component path --- pkg/exec/run.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/exec/run.go b/pkg/exec/run.go index e680006983..caf5e2324d 100644 --- a/pkg/exec/run.go +++ b/pkg/exec/run.go @@ -74,7 +74,7 @@ func RunComponent(env *environment.Environment, tag, spec, binPath string, args return err } - fmt.Fprintf(os.Stderr, "Starting component `%s`: %s\n", component, strings.Join(append([]string{binPath}, c.Args...), " ")) + fmt.Fprintf(os.Stderr, "Starting component `%s`: %s\n", component, strings.Join(c.Args, " ")) err = c.Start() if err != nil { return errors.Annotatef(err, "Failed to start component `%s`", component)