Fix space

This commit is contained in:
CronyAkatsuki 2023-10-22 11:38:17 +02:00
parent 98d9ef5abc
commit d9e72f756d

2
udict
View File

@ -5,7 +5,7 @@
term="$@"
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g' )"
term="$(printf '%s\n' "${term}" | sed 's/ /\\/g')"
curl -s "https://api.urbandictionary.com/v0/define?term=${term}" |
jq -r '.list[0] | .word, .definition' |