mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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"/"
|
||||
|
||||
Reference in New Issue
Block a user