tools/mk7z: tweak manifest handling code

To support mawk (default awk on debian unstable).
This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-05-12 09:47:44 +02:00
1 parent e921ed1bc7
commit 2d4b12c99c
1 file changed
+1 -1
+1 -1
View File
@@ -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