Skip to content

Commit

Permalink
supply command with flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-Yue committed Sep 1, 2023
1 parent 28907a9 commit a3342ba
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ func simpleCollect(ctx *cli.Context) error {
if err != nil {
return err
}
pathlist := strings.Split(filePath, "/")
n := BPF_name{Name: strings.ReplaceAll(pathlist[len(pathlist)-1], ".", "")}
path := strings.Fields(filePath)[0]
pathlist := strings.Split(path, "/")
n := BPF_name{Name: strings.ReplaceAll(pathlist[len(pathlist)-1], ".py", "")}
return n.Run(filePath)
}

Expand Down

0 comments on commit a3342ba

Please sign in to comment.