changeset 8643:6debb166421a

<oerjan> revert
author HackBot
date Wed, 29 Jun 2016 00:12:12 +0000
parents b42d71ed99e5
children 78c7dc72d429
files bin/wisdom
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/wisdom	Wed Jun 29 00:11:42 2016 +0000
+++ b/bin/wisdom	Wed Jun 29 00:12:12 2016 +0000
@@ -1,2 +1,1 @@
-LANG=en_NZ.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