]> git.plutz.net Git - serve0/commitdiff
bugfix: avoid listing empty lines
authorPaul Hänsch <paul@plutz.net>
Tue, 22 Feb 2022 17:19:48 +0000 (18:19 +0100)
committerPaul Hänsch <paul@plutz.net>
Tue, 22 Feb 2022 17:19:48 +0000 (18:19 +0100)
db_meta.sh

index ffe7c4ddd3a0f79b9584cee07f4ccd8076691597..572ebbd30b4bfc0411b736dc5cffd395dc797852 100755 (executable)
@@ -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;
     '