fix: sha lowercase comparison

This commit is contained in:
Carlos Florêncio
2026-02-15 19:12:59 +00:00
parent ae99a31a9f
commit cebdda5d9f
+1 -1
View File
@@ -159,7 +159,7 @@ function readSha256(pathToSha: string): string | null {
}
const content = fs.readFileSync(pathToSha, "utf8").trim();
const first = content.split(/\s+/)[0];
return first || null;
return first?.toLowerCase() || null;
}
export async function getRelease(version?: string): Promise<ReleaseResponse> {