# HG changeset patch # User HackBot # Date 1474066039 0 # Node ID dfc5682ee287f91e6ccd318562770d5a46b23443 # Parent bc9db01df0a9c15b01e5ecfe5695aaaa568bd5df ` sed -i -e \'s/{/if [ -n "$f" ]; then/;s/} |/else echo "that\'\\\'\'s not wise"; fi |/\' bin/wisdom diff -r bc9db01df0a9 -r dfc5682ee287 bin/wisdom --- a/bin/wisdom Fri Sep 16 22:28:03 2016 +0000 +++ b/bin/wisdom Fri Sep 16 22:47:19 2016 +0000 @@ -1,1 +1,1 @@ -f=$(find wisdom -ipath "wisdom/*$1*" -type f -print0 | shuf -z -n1); { echo -n "${f#wisdom/}//"; cat "$f"; } | rnooodl +f=$(find wisdom -ipath "wisdom/*$1*" -type f -print0 | shuf -z -n1); if [ -n "$f" ]; then echo -n "${f#wisdom/}//"; cat "$f"; else echo "that's not wise"; fi | rnooodl