Skip to content

Commit

Permalink
Merge pull request #2026 from ktock/fix-invoke-flag
Browse files Browse the repository at this point in the history
debug: fix short-form custom command name on `--invoke` isn't used
  • Loading branch information
tonistiigi authored Aug 30, 2023
2 parents da66629 + 7843b5f commit 76119b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -719,6 +719,7 @@ func parseInvokeConfig(invoke string) (cfg invokeConfig, err error) {
}
if len(fields) == 1 && !strings.Contains(fields[0], "=") {
cfg.Cmd = []string{fields[0]}
cfg.NoCmd = false
return cfg, nil
}
cfg.NoUser = true
Expand Down

0 comments on commit 76119b0

Please sign in to comment.