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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user