changeset 5165:7a75388fddf0

<shachaf> revert 5151
author HackBot
date Wed, 19 Nov 2014 11:09:06 +0000
parents 71cd3c3fb4b7
children 431fa0c27190
files bin/slashlearn wisdom/identity function
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/bin/slashlearn	Wed Nov 19 10:51:55 2014 +0000
+++ b/bin/slashlearn	Wed Nov 19 11:09:06 2014 +0000
@@ -1,6 +1,5 @@
 #!/bin/bash
 topic=$(echo "$1" | lowercase | cut -d / -f 1)
 [ -z "$topic" ] && exit 1
-[ -e wisdom/"$topic" ] && op='Overwrote' || op='Wrote'
 value=$(echo "$1" | cut -d / -f 2-)
-echo "$value" > wisdom/"$topic" && echo "$op «$topic»"
+echo "$value" > wisdom/"$topic" && echo "Learned «$topic»"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/wisdom/identity function	Wed Nov 19 11:09:06 2014 +0000
@@ -0,0 +1,1 @@
+The identity function is a mockingbird.