debug: fix short-form custom command name on `--invoke` isn't used

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
pull/2026/head
Kohei Tokunaga 1 year ago
parent da6662975f
commit 7843b5f417
No known key found for this signature in database
GPG Key ID: 6CE0A04690DB3FB3

@ -719,6 +719,7 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) {
} }
if len(fields) == 1 && !strings.Contains(fields[0], "=") { if len(fields) == 1 && !strings.Contains(fields[0], "=") {
cfg.Cmd = []string{fields[0]} cfg.Cmd = []string{fields[0]}
cfg.NoCmd = false
return cfg, nil return cfg, nil
} }
cfg.NoUser = true cfg.NoUser = true

Loading…
Cancel
Save