1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 10:47:40 +00:00

upgrade shell config file

This commit is contained in:
kepler155c@gmail.com
2018-12-30 06:15:16 -05:00
parent 09f436a3c2
commit f19d439314
2 changed files with 8 additions and 1 deletions

View File

@@ -14,11 +14,18 @@ end
local lua_path = package.path
-- TODO: Temporary
local upgrade = Util.readTable('usr/config/shell')
if upgrade and not upgrade.upgraded then
fs.delete('usr/config/shell')
end
if not fs.exists('usr/config/shell') then
Util.writeTable('usr/config/shell', {
aliases = shell.aliases(),
path = 'usr/apps',
lua_path = lua_path,
upgraded = true,
})
end