summaryrefslogtreecommitdiff
path: root/ensure.lua
blob: 8f46063d0ac1e75e18119483ec4ea891a3c3517e (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env lua
local l = require "ensure.list"
local e = require "ensure.engine"
local loud = {
	identifier = l.default.identifier,
	invalid = function (_, name) io.stderr:write(string.format("invalid package name: %q\n", name)) end,
}
local path = arg[1] or os.getenv("ENSURE") or "/etc/ensure.d"
e.install(e.check(l.all(path, loud)))