]> git.plutz.net Git - serve0/blobdiff - list.sh
prefer shell based unstring function
[serve0] / list.sh
diff --git a/list.sh b/list.sh
index e7b856c81346cf3d96488de569dd3d36f768ad53..1ae43f19e58c1911dcf2bbfba0fd4ed8bfbc1f52 100644 (file)
--- a/list.sh
+++ b/list.sh
@@ -35,8 +35,8 @@ list_item() {
       "$link" "$link" "${name##/}" \
       "$((length / 60))" "$((length % 60))" \
       "$width" "$height" \
-      "$(printf '%s\n' "${tags#tags=}" \
-         | sed -r "$UNSTRING"' s;^;,;; s;,+;,;g; s;,$;;;
+      "$(UNSTRING "${tags#tags=}" \
+         | sed -r 's;^;,;; s;,+;,;g; s;,$;;;
                    :X s;,-?([^,]+)(,|$); [span .tag\n \1]\2;; tX;'
       )" "$name" "$link" "$link"
   else