From 5add17875f769c487528543d21adc0c0e643058c Mon Sep 17 00:00:00 2001 From: Xuecheng Zhang Date: Thu, 22 Oct 2020 16:51:13 +0800 Subject: [PATCH] cherry pick #1200 to release-2.0 Signed-off-by: ti-srebot --- cmd/dm-ctl/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/dm-ctl/main.go b/cmd/dm-ctl/main.go index 4958894eb2..c52adb5818 100644 --- a/cmd/dm-ctl/main.go +++ b/cmd/dm-ctl/main.go @@ -220,6 +220,8 @@ func loop() { } continue } + + line = strings.TrimSpace(line) if line == "exit" { os.Exit(0) } else if line == "" {