This commit is contained in:
xomf 2024-08-18 12:09:22 -04:00
parent 1e170263fd
commit 20495931d0
2 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ local require = function(path)
return __DEFAULT_IMPORT(path)
end
end
local __UPDATE_HASH = "32131b86ec80e34ab2d23337c9acc67413604d7f"
local __UPDATE_HASH = "979bd5bfa86b0404731e7575235126b2db006eb5"
rawset(__BUNDLER_FILES, "updater.lua", function ()
local utils = require("utils.lua")
local config = require("config.lua")
@ -31,7 +31,7 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
end
fs.copy("startup.lua", "backup.lua")
if not string.find(update_code_text, __UPDATE_HASH) then
http.post(config.ntfy_url, "Computer #" .. tostring( os.getComputerID() ) .. "updating")
http.post(config.ntfy_url, "Computer #" .. tostring( os.getComputerID() ) .. " updating")
local file = fs.open("startup.lua", "w")
file.write(update_code_text)
file.close()

View File

@ -29,7 +29,7 @@ local function checkForUpdate()
fs.copy("startup.lua", "backup.lua")
if not string.find(update_code_text, __UPDATE_HASH) then
http.post(config.ntfy_url, "Computer #" .. tostring( os.getComputerID() ) .. "updating")
http.post(config.ntfy_url, "Computer #" .. tostring( os.getComputerID() ) .. " updating")
local file = fs.open("startup.lua", "w")
file.write(update_code_text)
file.close()