mirror of
https://github.com/kepler155c/opus
synced 2024-12-31 19:00:27 +00:00
Update upgraded.lua
Kind of make the program look better as the 'sys/apis' line is the only one not to do fs.exists. Also fixes error when opus is nested inside a potatOS instance.
This commit is contained in:
parent
b3efbc7438
commit
9c4aac27f8
@ -1,14 +1,20 @@
|
||||
local fs = _G.fs
|
||||
|
||||
local function deleteIfExists(path)
|
||||
if fs.exists(path) then
|
||||
fs.delete(path)
|
||||
print("Deleted outdated file at: "..path)
|
||||
end
|
||||
end
|
||||
-- cleanup outdated files
|
||||
fs.delete('sys/apps/shell')
|
||||
fs.delete('sys/etc/app.db')
|
||||
fs.delete('sys/extensions')
|
||||
fs.delete('sys/network')
|
||||
fs.delete('startup')
|
||||
fs.delete('sys/apps/system/turtle.lua')
|
||||
fs.delete('sys/autorun/gps.lua')
|
||||
fs.delete('sys/autorun/gpshost.lua')
|
||||
fs.delete('sys/apps/network/redserver.lua')
|
||||
if fs.exists('sys/apis') then fs.delete('sys/apis') end
|
||||
fs.delete('sys/autorun/apps.lua')
|
||||
deleteIfExists('sys/apps/shell')
|
||||
deleteIfExists('sys/etc/app.db')
|
||||
deleteIfExists('sys/extensions')
|
||||
deleteIfExists('sys/network')
|
||||
deleteIfExists('startup')
|
||||
deleteIfExists('sys/apps/system/turtle.lua')
|
||||
deleteIfExists('sys/autorun/gps.lua')
|
||||
deleteIfExists('sys/autorun/gpshost.lua')
|
||||
deleteIfExists('sys/apps/network/redserver.lua')
|
||||
deleteIfExists('sys/apis')
|
||||
deleteIfExists('sys/autorun/apps.lua')
|
||||
|
Loading…
Reference in New Issue
Block a user