mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remember commands even if failed
This commit is contained in:
parent
0207f5fe9b
commit
0b4269b6a8
|
@ -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…
Reference in a new issue