Fix dict resolving due to a bug in dictd(8). - annna - Annna the nice friendly … | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 710651b05b5b177bc46fb444ba0e6a0d9b26210c | |
parent 5412aaa9b4b4a5f2a03f3d045cdc625aa7bd5874 | |
Author: Annna Robert-Houdin <[email protected]> | |
Date: Sun, 1 Nov 2020 14:57:10 +0100 | |
Fix dict resolving due to a bug in dictd(8). | |
Diffstat: | |
M annna-start-services | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -195,11 +195,11 @@ annna_common() { | |
;; | |
*) | |
puri="" | |
- dresult="$(dict "dict://parazyd.org/d:${word}")" | |
+ dresult="$(dict -h parazyd.org "${word}" 2>/dev/null)" | |
derr=$? | |
if [ $derr -eq 20 ]; | |
then | |
- dresult="$(dict "dict://parazyd.org/d:${word}"… | |
+ dresult="$(dict -h parazyd.org "${word}" 2>/de… | |
derr2="$?" | |
[ $derr2 -ne $derr ] && derr=$derr2 | |
fi |