Try to fix up formatting on the bash quotes thing a bit.

This commit is contained in:
Storm Dragon 2020-08-12 21:32:56 -04:00
parent 5f1f6110eb
commit 4ce3cffaa2
1 changed files with 2 additions and 2 deletions

View File

@ -4,8 +4,8 @@ set -f
quote="$(curl -s http://bash.org/?random)"
quote="$(echo "$quote" | grep -m 1 -A 10 '"Permanent link to this quote."')"
quote="${quote#*class=\"qt\">}"
quote="${quote//&lt;/<}"
quote="${quote//&gt;/>}"
quote="${quote//&lt;/ <}"
quote="${quote//&gt;/> }"
quote="${quote%%<p class*}"
quote="$(echo "$quote" | pandoc -t plain)"
msg "$2" "$(echo "$quote" | tr -cd '[:print:]')"