]> git.plutz.net Git - serve0/blobdiff - indexmeta.sh
various code improvements (skip double sanitizing, bugfix in name handling, slight...
[serve0] / indexmeta.sh
index 8f0c971c81765becddf59d01368bf0680c766263..00741d44881793000fce5b4f2e24142d8e6cf51f 100644 (file)
@@ -68,7 +68,7 @@ meta_info(){
     | grep -m1 -axE '[0-9]+    [0-9]+  [0-9]+  tags=[^ ]*      comment=[^      ]*      .+' \
     || meta_file "$file"
   else
-    printf '0\t0\t0\ttags=\tcomment=\t\r'
+    printf '0\t0\t0\ttags=\tcomment=\t%s\r' "$(meta_name "$file")"
   fi
 }