Try to fix up formatting on the bash quotes thing a bit.
This commit is contained in:
parent
5f1f6110eb
commit
4ce3cffaa2
@ -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//</<}"
|
||||
quote="${quote//>/>}"
|
||||
quote="${quote//</ <}"
|
||||
quote="${quote//>/> }"
|
||||
quote="${quote%%<p class*}"
|
||||
quote="$(echo "$quote" | pandoc -t plain)"
|
||||
msg "$2" "$(echo "$quote" | tr -cd '[:print:]')"
|
||||
|
Loading…
Reference in New Issue
Block a user