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:
1 parent
20fee6536d
commit
14ddbbfcd3
1 file changed
+1
-1
+1
-1
@@ -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