Merge pull request #2026 from ktock/fix-invoke-flag

debug: fix short-form custom command name on `--invoke` isn't used
pull/2029/head
Tõnis Tiigi 1 year ago committed by GitHub
commit 76119b0f61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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