tools/mkrelease: fix bug in AWK helpers (#13847)
Some checks failed
macos / macOS 13 x86-64 🔨15.2 🎯10.15 (push) Has been cancelled
macos / macOS 14 ARM64 🔨15.4 🎯11.0 (push) Has been cancelled

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.
This commit is contained in:
Benoit Pierre
2025-05-24 00:35:09 +02:00
committed by GitHub
parent 20fee6536d
commit 14ddbbfcd3

View File

@@ -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"/"