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