This commit is contained in:
Gvidas Juknevičius 2024-08-25 23:10:04 +03:00
parent b96de1a029
commit f0e24ab135
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 10 additions and 0 deletions

View File

@ -400,6 +400,10 @@ rawset(__BUNDLER_FILES, "updater", function ()
log.debug("Commit hash doesnt match, probbably an update"); log.debug("Commit hash doesnt match, probbably an update");
return true; return true;
end end
if data[1].hash == self.curr_commit_hash then
log.debug("Commit hash matches");
log.debug(data[1].hash .. " (old) => (new) " .. self.curr_commit_hash);
end
return false; return false;
end end
function updater:update(path, url) function updater:update(path, url)

View File

@ -82,6 +82,12 @@ function updater:check(branch)
log.debug("Commit hash doesnt match, probbably an update"); log.debug("Commit hash doesnt match, probbably an update");
return true; return true;
end end
if data[1].hash == self.curr_commit_hash then
log.debug("Commit hash matches");
log.debug(data[1].hash .. " (old) => (new) " .. self.curr_commit_hash);
end
return false; return false;
end end