mirror of
https://github.com/kepler155c/opus
synced 2025-10-18 17:27:39 +00:00
package manager wip
This commit is contained in:
@@ -15,7 +15,10 @@ function Config.load(fname, data)
|
||||
if not fs.exists(filename) then
|
||||
Util.writeTable(filename, data)
|
||||
else
|
||||
Util.merge(data, Util.readTable(filename) or { })
|
||||
local contents = Util.readTable(filename) or
|
||||
error('Configuration file is corrupt:' .. filename)
|
||||
|
||||
Util.merge(data, contents)
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user