Skip to content

Commit

Permalink
bcc-probe: Allow loading absolute paths
Browse files Browse the repository at this point in the history
  • Loading branch information
vmg committed Mar 30, 2016
1 parent df11f32 commit 74d2e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lua/bcc-probe
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ local utils = {
}

local tracefile = table.remove(arg, 1)
local command = require(tracefile:gsub("%.lua", ""))
local command = dofile(tracefile)
local res, err = pcall(command, BPF, utils)

if not res then
Expand Down

0 comments on commit 74d2e6c

Please sign in to comment.