mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 18:57:58 +08:00
remember commands even if failed
This commit is contained in:
@@ -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:]))
|
||||
|
||||
|
Reference in New Issue
Block a user