X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=widgets.sh;h=f79d457303b672eeb0ea35ab00478d531dfba131;hb=ec97cc5e9c5d8b74786ac93b40b47af260c02e48;hp=35b8b70ed349a9414e020e1789df3dc4176aa301;hpb=f7cc4cdc95981eb199d782c426356d35f01e6d71;p=serve0 diff --git a/widgets.sh b/widgets.sh index 35b8b70..f79d457 100644 --- a/widgets.sh +++ b/widgets.sh @@ -15,10 +15,11 @@ 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' -print0 \ - | xargs -r0 sed -r ' - s;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; - s;,;\n;g;'"$UNSTRING" \ + find "$_DATA/" -path '*/.index/meta' -exec \ + sed -E 's;^.*\t.*\t.*\ttags=(.*)\tcomment=.*\t.*\r$;\1;; + s;,;\n;g;' \ + '{}' + \ + | UNSTRING \ | { sort; printf '\n'; } \ | while read -r tag; do [ "$tag" = "$otag" ] \