tools/mk7z: tweak manifest handling code

To support mawk (default awk on debian unstable).
reviewable/pr11800/r1
Benoit Pierre 3 weeks ago
parent df9d93d93c
commit 3567342b28

@ -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

Loading…
Cancel
Save