Skip to content

Commit

Permalink
Merge pull request #3934 from deitch/fix-name-output-build-bug
Browse files Browse the repository at this point in the history
handle conflict with name and output
  • Loading branch information
deitch committed Jun 12, 2023
2 parents aab61a1 + b1fa7d2 commit 655c7fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cmd/linuxkit/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ The generated image can be in one of multiple formats which can be run on variou
Example: ` linuxkit build [options] <file>[.yml]`,
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {
if name == "" {
if name == "" && outputFile == "" {
conf := args[len(args)-1]
if conf == "-" {
name = defaultNameForStdin
Expand Down

0 comments on commit 655c7fb

Please sign in to comment.