Mercurial > repo
changeset 8645:dbd625bc9f4c
<izabera> revert
author | HackBot |
---|---|
date | Wed, 29 Jun 2016 00:15:27 +0000 |
parents | 78c7dc72d429 |
children | 52256a4d5110 |
files | bin/wisdom |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/wisdom Wed Jun 29 00:12:39 2016 +0000 +++ b/bin/wisdom Wed Jun 29 00:15:27 2016 +0000 @@ -1,2 +1,1 @@ -LANG=en_US.UTF-8 -f=$(find wisdom -path "wisdom/*${1,,}" -type f -print0 | shuf -z -n1); echo -n "${f#wisdom/}//" | rnooodl; rnooodl < "$f" +F="$(find wisdom -path "wisdom/*$(echo "$1" | lowercase)*" -type f -print0 | shuf -z -n1)"; echo -n "${F#wisdom/}//" | rnooodl; cat "$F" | rnooodl