function newCheck()
shell.run("clear")
if fs.exists("startup") then
local rf = fs.open("startup", "r")
local ef = fs.open("startup", "a")
lines = ""
while lines do
lines = rf.readLine()
if lines and string.find(lines, [[shell.run("bluelock")]]) then --Completely ignoring this.
rf.close()
ef.close()
return blueLock()
else
print("Preparing for first time run.")
sleep(2)
print("Startup File Detected. Adding BlueLock to startup file.\n\nNote: If you have a custom sequence for your startup file BlueLock has been added to the end of the file.\n\nBe sure to place BlueLock's startup opperation in a more appropriate spot in your file.")
ef.write([[shell.run("bluelock")]].."\n")
ef.close()
rf.close()
sleep(3)
return blueLock()
end
end
elseif not fs.exists("startup") then
local rf = fs.open("startup", "r")
local ef = fs.open("startup", "a")
print("Preparing for first time run.")
sleep(2)
print("Startup File Not Detected, creating Startup File.")
ef.write([[shell.run("bluelock")]])
ef.close()
sleep(3)
return blueLock()
end
end
I don't know if there's anything else in this I missed, but so far that's what seems to be causing a problem.












