aboutsummaryrefslogtreecommitdiff
path: root/weed/shell/shell_liner.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/shell/shell_liner.go')
-rw-r--r--weed/shell/shell_liner.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/weed/shell/shell_liner.go b/weed/shell/shell_liner.go
index e86220134..cd015fe85 100644
--- a/weed/shell/shell_liner.go
+++ b/weed/shell/shell_liner.go
@@ -4,6 +4,7 @@ import (
"context"
"fmt"
"github.com/chrislusf/seaweedfs/weed/wdclient"
+ "io"
"os"
"regexp"
"strings"
@@ -43,7 +44,9 @@ func RunShell(options ShellOptions) {
for {
cmd, err := line.Prompt("> ")
if err != nil {
- fmt.Printf("%v\n", err)
+ if err != io.EOF {
+ fmt.Printf("%v\n", err)
+ }
return
}