Commit af3b5a48 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

process configuration files in deterministic order

parent 4de7b59a
......@@ -38,7 +38,11 @@ function translate()
'/etc/awall'}
for i, dir in ipairs(confdirs) do
for fname in lfs.dir(dir) do
local fnames = {}
for fname in lfs.dir(dir) do table.insert(fnames, fname) end
table.sort(fnames)
for i, fname in ipairs(fnames) do
if string.sub(fname, 1, 1) ~= '.' then
local data = ''
for line in io.lines(dir..'/'..fname) do data = data..line end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment