From: Paul Hänsch Date: Mon, 29 Nov 2021 21:47:34 +0000 (+0100) Subject: bugfix: assign new tags from text field X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2c973a1497b88df3b970b7df316d5ece7730858d;p=serve0 bugfix: assign new tags from text field --- diff --git a/multitag.sh b/multitag.sh index 888ff9d..bbbf946 100755 --- a/multitag.sh +++ b/multitag.sh @@ -6,7 +6,7 @@ newtags='' for tn in $(seq 1 $(POST_COUNT tag)); do newtags="$(POST tag $tn)${BR}${newtags}" done -newtags="$(POST newtag |tr -d '\r' |tr , '\n')${BR}${newtags}" +newtags="$(POST newtagn |tr -d '\r' |tr , '\n')${BR}${newtags}" while [ "${newtags#${BR}}" != "${newtags}" ]; do newtags="${newtags#${BR}}"; done while [ "${newtags%${BR}}" != "${newtags}" ]; do newtags="${newtags%${BR}}"; done