X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=multitag.sh;h=9848ac3e34bcd30613e7d7add918e11c5ab06b16;hb=cfb24f8d9e3106608a08603d22f67816621dc807;hp=c9a7e8f4d2d420b756cec7799485304bc36d54c0;hpb=8481ce84548f4ccdf911667bf0fdcd20e6192c5e;p=serve0 diff --git a/multitag.sh b/multitag.sh index c9a7e8f..9848ac3 100644 --- a/multitag.sh +++ b/multitag.sh @@ -14,8 +14,6 @@ while [ "${newtags%${BR}}" != "${newtags}" ]; do newtags="${newtags%${BR}}"; don [ "$(POST op)" = del ] && deltags="$newtags" -echo "x $newtags x" >&2 - for select in $(seq 1 $(POST_COUNT select)); do file="$_DATA/$ITEM/$(POST select $select |PATH)" meta="${file%/*}/.index/meta" @@ -23,6 +21,7 @@ for select in $(seq 1 $(POST_COUNT select)); do read -r length width height tags comment fn <<-EOF $(meta_info "$file") EOF + [ "$fn" ] || continue tags="$(UNSTRING "${tags#tags=}" |tr , '\n')" if [ ! "$deltags" ]; then