mirror of
https://github.com/kepler155c/opus
synced 2024-12-25 16:10:26 +00:00
upgrade shell config file
This commit is contained in:
parent
09f436a3c2
commit
f19d439314
@ -3212,7 +3212,7 @@ function UI.TextArea:draw()
|
||||
-- self:setCursorPos(1, 1)
|
||||
self.cursorX, self.cursorY = 1, 1
|
||||
self:print(self.value)
|
||||
self.ymax = self.cursorY + 1
|
||||
self.ymax = self.cursorY
|
||||
|
||||
for _,child in pairs(self.children) do
|
||||
if child.enabled then
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user