Skip to content

Commit

Permalink
filename logic
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-901 authored and fntlnz committed Jan 24, 2023
1 parent adb10aa commit 556c71b
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 @@ -261,7 +261,7 @@ func (o *RunOptions) Validate(cmd *cobra.Command, args []string) error {
if (evalDefined && filenameDefined) || (evalDefined && programDefined) || (filenameDefined && programDefined) {
return fmt.Errorf(bpftraceDoubleErrString)
}
if (evalDefined && len(o.eval) == 0) || (filenameDefined && len(o.program) == 0) || (programDefined && len(o.program) == 0) {
if (evalDefined && len(o.eval) == 0) || (filenameDefined && len(o.filename) == 0) || (programDefined && len(o.program) == 0) {
return fmt.Errorf(bpftraceEmptyErrString)
}
default:
Expand Down

0 comments on commit 556c71b

Please sign in to comment.