changeset 10258:4506d2db5d56

<oerjan> revert
author HackBot
date Wed, 15 Feb 2017 01:21:17 +0000
parents b727e7b800f7
children cc2a8bbb4738
files bin/?
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/bin/?	Wed Feb 15 01:20:42 2017 +0000
+++ b/bin/?	Wed Feb 15 01:21:17 2017 +0000
@@ -1,14 +1,13 @@
 #!/bin/bash
 topic=$(echo "$1" | lowercase | sed "s/noo\+dl/nooodl/;s/ *$//")
 topic1=$(echo '`'"$topic" | sed 's/^``//')
-topic2=$(echo "$topic" | sed "s/s$//")
+topic1=$(echo "$topic" | sed "s/s$//")
 cd wisdom
-if [ \( "_$topic2"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
+if [ \( "_$topic1"_ = "_ngevd"_ \) -a \( -e ngevd \) ];
     then cat /dev/urandom;
     elif [ -e "$topic" ];
-elif [ -e "$topic1" ];
     then cat "$topic";
-    elif [ -e "$topic2" ];
-    then cat "$topic2";
+    elif [ -e "$topic1" ];
+    then cat "$topic1";
     else echo "$1? ¯\(°​_o)/¯"; exit 1;
 fi | rnooodl