Skip to content

Commit

Permalink
fix: adjust length check of sources defined in config file
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bauer <florian@fsrv.xyz>
  • Loading branch information
fsrv-xyz authored and squakez committed Nov 13, 2024
1 parent fd8dbd9 commit 90ada2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ func (o *runCmdOptions) run(cmd *cobra.Command, args []string) error {
}

// We need to make this check at this point, in order to have sources filled during decoding
if (len(args) < 1 && len(o.Sources) < 0) && o.ContainerImage == "" {
if (len(args) < 1 && len(o.Sources) < 1) && o.ContainerImage == "" {
return errors.New("run command expects either an Integration source or the container image (via --image argument)")
}

Expand Down

0 comments on commit 90ada2a

Please sign in to comment.