summaryrefslogtreecommitdiff
path: root/ensure.lua
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-01-02 01:50:08 +0100
committerAki <please@ignore.pl>2024-01-02 01:50:08 +0100
commitbda360e2af4b9d0da0f5957e0c737ea39863719a (patch)
tree8758dea02904d11528fa33219fee319c2a3c33b4 /ensure.lua
parent91e85f9809ed406d2120e424aaa2f249ee18e2c2 (diff)
downloadensure-bda360e2af4b9d0da0f5957e0c737ea39863719a.zip
ensure-bda360e2af4b9d0da0f5957e0c737ea39863719a.tar.gz
ensure-bda360e2af4b9d0da0f5957e0c737ea39863719a.tar.bz2
Implemented stub engine detection, package checks and installsHEADmaster
Diffstat (limited to 'ensure.lua')
-rw-r--r--ensure.lua7
1 files changed, 3 insertions, 4 deletions
diff --git a/ensure.lua b/ensure.lua
index 0dd264b..8f46063 100644
--- a/ensure.lua
+++ b/ensure.lua
@@ -1,10 +1,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 p = l.all(arg[1] or os.getenv("ENSURE") or "/etc/ensure.d", loud)
-for _, name in pairs(p) do
- print(name)
-end
+local path = arg[1] or os.getenv("ENSURE") or "/etc/ensure.d"
+e.install(e.check(l.all(path, loud)))