From 2d4b12c99c05408e333f2b7c5eea296159c9eb43 Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Sat, 11 May 2024 23:02:18 +0200 Subject: [PATCH] tools/mk7z: tweak manifest handling code To support mawk (default awk on debian unstable). --- tools/mk7z.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/mk7z.sh b/tools/mk7z.sh index 2ebfe214c..8dee9bc3f 100755 --- a/tools/mk7z.sh +++ b/tools/mk7z.sh @@ -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