From 14ddbbfcd3e9b2426e8fd6fe2c244e6561355ed3 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 24 May 2025 00:35:09 +0200 Subject: [PATCH] tools/mkrelease: fix bug in AWK helpers (#13847) The manifest entry for `koreader/frontend/socketutil.lua` is wrong: ``` koreader/frontend/socketutil.lua/ ``` That's because the CRC for that file (0E376639) compare as a false value when used conditionally with `if (0E376639)`. The correct way to check for an empty string is to use: `if (0E376639 != "")`. NOTE: no impact that I could see on the actual generated archive, e.g. for kindlepw2: the file is still included. --- tools/mkrelease.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mkrelease.sh b/tools/mkrelease.sh index 66b10348a..6988a22ca 100755 --- a/tools/mkrelease.sh +++ b/tools/mkrelease.sh @@ -19,7 +19,7 @@ OPTIONS: declare -r AWK_HELPERS=' function print_entry(path, size, crc) { sub("/$", "", path) - if (crc) + if (crc != "") print path, size, crc else print path"/"