Skip to content

Commit

Permalink
Bump to 0.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeblank authored Nov 22, 2019
2 parents 2f33a5e + 9c2bd72 commit 9fc8020
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,17 @@ end
-- Final firstrun stuff
if firstrun then
print("Finalizing installation")
local sha, file = config.updates.check.allium(), fs.open(fs.combine(path, "/cfg/version.lson"), "w")
if file then
file.write(textutils.serialise({sha = sha, version = allium_version}))
file.close()
else
local sha, v_file = up.check.allium(), fs.open(fs.combine(path, "/cfg/version.lson"), "w")
if v_file then
v_file.write(textutils.serialise({sha = sha, version = allium_version}))
v_file.close()
end
local m_file = fs.open(fs.combine(path, "/cfg/metadata.lson"), "w")
if m_file then
m_file.write("{}")
m_file.close()
end
if not (m_file and v_file) then
printError("Could not write to file. Is the disk full?")
return
end
Expand Down

0 comments on commit 9fc8020

Please sign in to comment.