1
0
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:
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

@ -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

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