Browse Source

avoid lower casing the command

fix https://github.com/seaweedfs/seaweedfs/pull/4321
pull/4322/head
chrislu 2 years ago
parent
commit
adb90bd252
  1. 2
      weed/server/master_server.go

2
weed/server/master_server.go

@ -316,7 +316,7 @@ func processEachCmd(reg *regexp.Regexp, line string, commandEnv *shell.CommandEn
for i := range args { for i := range args {
args[i] = strings.Trim(string(cmds[1+i]), "\"'") args[i] = strings.Trim(string(cmds[1+i]), "\"'")
} }
cmd := strings.ToLower(cmds[0])
cmd := cmds[0]
for _, c := range shell.Commands { for _, c := range shell.Commands {
if c.Name() == cmd { if c.Name() == cmd {

Loading…
Cancel
Save