mirror of
https://github.com/kepler155c/opus
synced 2025-12-12 03:18:08 +00:00
fix netfs issues - implement fs.attributes
This commit is contained in:
@@ -10,10 +10,8 @@ local os = _G.os
|
||||
local textutils = _G.textutils
|
||||
local term = _G.term
|
||||
|
||||
local _exit
|
||||
|
||||
local sandboxEnv = setmetatable(Util.shallowCopy(_ENV), { __index = _G })
|
||||
sandboxEnv.exit = function() _exit = true end
|
||||
sandboxEnv.exit = function() UI:quit() end
|
||||
sandboxEnv._echo = function( ... ) return { ... } end
|
||||
_G.requireInjector(sandboxEnv)
|
||||
|
||||
@@ -363,10 +361,6 @@ function page:executeStatement(statement)
|
||||
self:emit({ type = 'show_output' })
|
||||
end
|
||||
end
|
||||
|
||||
if _exit then
|
||||
UI:quit()
|
||||
end
|
||||
end
|
||||
|
||||
local args = Util.parse(...)
|
||||
|
||||
@@ -151,7 +151,7 @@ if action == 'uninstall' then
|
||||
runScript(manifest.uninstall)
|
||||
|
||||
local packageDir = fs.combine('packages', name)
|
||||
fs.delete(packageDir)
|
||||
fs.delete(fs.resolve(packageDir))
|
||||
print('removed: ' .. packageDir)
|
||||
return
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user