X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=f825c12c8213678ab4bb74caab25a61cba128bea;hb=65f7fdd29c51ce924260a9aae21f29fa15154dcb;hp=f79d457303b672eeb0ea35ab00478d531dfba131;hpb=3c0572e592c39a0e7d4d6794b0fb68cf4719a79f;p=serve0 diff --git a/widgets.sh b/widgets.sh index f79d457..f825c12 100644 --- a/widgets.sh +++ b/widgets.sh @@ -15,10 +15,10 @@ if [ ! -s "$c_tags" -o ! -s "$c_tagcategories" ] \ || [ "$(find "$_DATA/" -path '*/.index/meta' -newer "$c_tags")" ] then w_tags="$( cn=1 - find "$_DATA/" -path '*/.index/meta' -exec \ - sed -E 's;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; - s;,;\n;g;' \ - '{}' + \ + find "$_DATA/" -path '*/.index/meta' -print0 \ + | xargs -0 -r sed -E ' + s;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; + s;,;\n;g;' \ | UNSTRING \ | { sort; printf '\n'; } \ | while read -r tag; do