From db862f12ef801f0cc42bf0016be26d60a7239452 Mon Sep 17 00:00:00 2001
From: Kodi Craft <kodi@kdcf.me>
Date: Tue, 25 Mar 2025 19:29:22 +0100
Subject: [PATCH] hack might have been because of emulation bug..?

---
 install.lua | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/install.lua b/install.lua
index 268fa3c..b4573ab 100644
--- a/install.lua
+++ b/install.lua
@@ -56,7 +56,7 @@ local function main()
       toDownload[#toDownload+1] = v
     else
       local destfile = fs.open(v.dest, "r")
-      local filehash = hash.sha256(destfile.readAll() .. "\n") -- newline is weird hack because of awkward hashes
+      local filehash = hash.sha256(destfile.readAll())
       destfile.close()
       if filehash ~= v.hash then
         toDownload[#toDownload+1] = v
@@ -79,7 +79,7 @@ local function main()
       -- Check the validity of the hash, this acts both as a checksum
       -- and a way to raise an error if the index is incorrect
       tempfile = fs.open("/tmp/" .. v.hash .. ".lua", "r")
-      local filehash = hash.sha256(tempfile.readAll() .. "\n") -- newline is weird hack because of awkward hashes
+      local filehash = hash.sha256(tempfile.readAll())
       tempfile.close()
       if filehash ~= v.hash then
         log.error("File " .. v.dest .. " (from " .. v.src .. ") has a mismatched hash.")