mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
tools/mk7z: tweak manifest handling code
To support mawk (default awk on debian unstable).
This commit is contained in:
committed by
Frans de Jonge
parent
e921ed1bc7
commit
2d4b12c99c
@@ -45,7 +45,7 @@ if [[ -r "${archive}" ]]; then
|
||||
<(
|
||||
"${sevenzip}" -slt l "${archive}" |
|
||||
awk '
|
||||
/^(\w+) = / { entry[$1] = $3; }
|
||||
/^([^=]+) = / { entry[$1] = $3; }
|
||||
/^CRC =/ { if ($3!="") print entry["Path"], entry["Size"], $3; else print entry["Path"] }
|
||||
' | sort
|
||||
) --label 'to add' "${manifest}"; then
|
||||
|
||||
Reference in New Issue
Block a user