Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix the parazyd bug. - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit d631072ac1dad6d80b8f6f25c88a03f96ddc75eb
parent 73081e14ab59fa19168f71e10adcc86d57ff1915
Author: Annna Robert-Houdin <[email protected]>
Date: Fri, 13 Apr 2018 12:44:51 +0200
Fix the parazyd bug.
Diffstat:
M annna-start-services | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/annna-start-services b/annna-start-services
@@ -110,16 +110,21 @@ then
;;
esac
- word="$(printf "%s\n" "${word}" | sed 's, ,_,g')"
-
purl=""
dresult="$(dict "dict://parazyd.org/d:${word}")"
- case "$?" in
+ derr=$?
+ if [ $derr -eq 20 ];
+ then
+ dresult="$(dict "dict://parazyd.org/d:${word}"…
+ derr2="$?"
+ [ $derr2 -ne $derr ] && derr=$derr2
+ fi
+ case "$derr" in
0|21)
purl="$(printf "%s" "${dresult}" | /br/bin/bit…
;;
20)
- purl="No matches found. Try again, if you thin…
+ purl="No matches found."
;;
1)
purl="Parse error."
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.