Output wolfram is output directly to the channel, if linecount 1. - annna - Annna the nice friendly bot.
HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
---
DIR commit ce8e1f4b2250b0db85fe1d70398d3b1bad4b0b65
DIR parent 38606e7b2a02549f542b44411aab957c2c1a4876
HTML Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Thu, 16 Apr 2020 14:15:32 +0200
Output wolfram is output directly to the channel, if linecount 1.
Diffstat:
M annna-start-services | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
---
DIR diff --git a/annna-start-services b/annna-start-services
@@ -212,7 +212,14 @@ then
;;
esac
- purl="$(printf "%s" "${dresult}" | /br/bin/bitreich-paste)"
+ wcl="$(printf "%s" "${dresult}" | wc -l)"
+
+ if [ $wcl -gt 1 ];
+ then
+ purl="$(printf "%s" "${dresult}" | /br/bin/bitreich-paste)"
+ else
+ purl="${dresult}"
+ fi
else
purl="No matches found."
fi