Not much luck improving the jq stuff yet, but I did fix ' showing up as '.
This commit is contained in:
parent
36513b8db6
commit
d7aa704cf1
@ -199,6 +199,7 @@ show_timeline() {
|
||||
# handle new events
|
||||
events="$(jq -r '.[].content' <<< "$result")"
|
||||
stripped_events="$(echo "$events" | sed -E 's/<[^>]+>//g')"
|
||||
stripped_events="${stripped_events//'/\'}"
|
||||
usernames="$(jq -r '.[].account.username' <<< "$result")"
|
||||
echo -e "$usernames" | while read -r username; do
|
||||
echo "$username: $(echo "$stripped_events" | head -n 1)"
|
||||
|
Loading…
Reference in New Issue
Block a user