diff --git a/boorubot.sh b/boorubot.sh index d7383e7..0073e14 100755 --- a/boorubot.sh +++ b/boorubot.sh @@ -44,7 +44,7 @@ MSG_SFW="$3" MSG_NSFW="$4" shift 4 -TAGS_FMT=`echo "$TAGS" | xargs -d ' ' echo | tr ' ' '+'` +TAGS_FMT=`echo "$TAGS" | tr ' ' '\n' | xargs echo | tr ' ' '+'` TAGS_BLK_FMT=`xargs -a "$TAGS_BLACKLIST" echo | sed 's|\ |+-|g'` TAGS_SEARCH="${TAGS_FMT}+sort:random+-${TAGS_BLK_FMT}"