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