Skip to content

Commit

Permalink
fix exec_paging_html
Browse files Browse the repository at this point in the history
  • Loading branch information
Junker committed Jul 10, 2022
1 parent 785d430 commit 62b8bac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,11 @@ local function table_to_string(t, delimiter)
return str
end

local function program_exists(p)
return (os.execute("type " .. p .. " > /dev/null 2>&1") == 0)
end


local function exec(command, node, ...)
return {{ Call = {command = command, args = {node.absolute_path, ...}} }}
end
Expand Down

0 comments on commit 62b8bac

Please sign in to comment.