From 1f3209f55e6f4d60c5b50a5f2280c645e57f422a Mon Sep 17 00:00:00 2001 From: Steven Polley Date: Mon, 10 Jul 2023 18:08:34 -0600 Subject: [PATCH] fix string formatting bug causing mangled id's --- processFiles.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/processFiles.go b/processFiles.go index 5a9842e..ff01f65 100644 --- a/processFiles.go +++ b/processFiles.go @@ -61,7 +61,7 @@ func hashFile(filename string) (string, error) { return "", fmt.Errorf("failed to copy data from file to hash function: %v", err) } - return string(h.Sum(nil)), nil + return fmt.Sprintf("%x", h.Sum(nil)), nil } // false if a file is not a LineageOS ROM .zip file