From 56ea78273186194c147e6e5cd2cd7662beb5a24f Mon Sep 17 00:00:00 2001 From: Openarl Date: Wed, 18 May 2016 00:09:24 +1000 Subject: [PATCH] Minor fixes to update mechanism --- Update.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Update.lua b/Update.lua index 31d8f156..6b8eef3f 100644 --- a/Update.lua +++ b/Update.lua @@ -122,7 +122,7 @@ if mode == "CHECK" then else local content = file:read("*a") file:close() - if data.sha1 ~= sha1(content) then + if data.sha1 ~= sha1(content) and data.sha1 ~= sha1(content:gsub("\n","\r\n")) then ConPrintf("Warning: Integrity check on '%s' failed, it will be replaced", data.name) table.insert(updateFiles, data) end