mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-11-12 23:09:33 +01:00
remember commands even if failed
This commit is contained in:
1 parent
0207f5fe9b
commit
0b4269b6a8
1 file changed
+3
-1
@@ -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