From a43c3cc48adab04657922f68cd9cc76177f2f428 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 22 Feb 2022 18:19:48 +0100 Subject: [PATCH] bugfix: avoid listing empty lines --- db_meta.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_meta.sh b/db_meta.sh index ffe7c4d..572ebbd 100755 --- a/db_meta.sh +++ b/db_meta.sh @@ -158,7 +158,7 @@ list_meta(){ { printf '%s\n' "$pfx" dbmeta_autogroup "$meta" } | sed -E ' - 1{ h; b; } + 1{ h; d; } G; s;^([^\t]+ [^\t]+ [^\t]+ [^\t]+ [^\t]+ )([^\n]+)\n(.*)$;\1\3\2; ' -- 2.39.2