Browse Source

remember commands even if failed

pull/2327/head
Chris Lu 3 years ago
parent
commit
0b4269b6a8
  1. 4
      weed/shell/shell_liner.go

4
weed/shell/shell_liner.go

@ -84,10 +84,12 @@ https://cloud.seaweedfs.com/ui/%s
func processEachCmd(reg *regexp.Regexp, cmd string, commandEnv *CommandEnv) bool {
cmds := reg.FindAllString(cmd, -1)
line.AppendHistory(cmd)
if len(cmds) == 0 {
return false
} else {
line.AppendHistory(cmd)
args := make([]string, len(cmds[1:]))

Loading…
Cancel
Save