mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-16 19:59:16 +00:00
webui: Use lowercase hash for HF checksum check (#23107)
This commit is contained in:
parent
cfabeb1bad
commit
1348f67c58
1 changed files with 2 additions and 2 deletions
|
|
@ -184,8 +184,8 @@ if(NOT PROVISION_SUCCESS AND HF_ENABLED)
|
|||
foreach(asset ${ASSETS})
|
||||
set(download_path "${PUBLIC_DIR}/${asset}")
|
||||
file(SHA256 "${download_path}" asset_hash)
|
||||
string(TOUPPER "${asset_hash}" EXPECTED_HASH_UPPER)
|
||||
string(REGEX MATCH "${EXPECTED_HASH_UPPER}[ \\t]+${asset}" CHECKSUM_LINE "${CHECKSUMS_CONTENT}")
|
||||
string(TOLOWER "${asset_hash}" EXPECTED_HASH_LOWER)
|
||||
string(REGEX MATCH "${EXPECTED_HASH_LOWER}[ \\t]+${asset}" CHECKSUM_LINE "${CHECKSUMS_CONTENT}")
|
||||
if(NOT CHECKSUM_LINE)
|
||||
message(WARNING "WebUI: checksum verification failed for ${asset}")
|
||||
message(WARNING " downloaded file may not match expected checksum, but will be used")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue