Add case for wolfram, so number and text formatting is better. - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit 58c7a4fabdf92ec67015769b83c9a60da7506842
(DIR) parent 31fa20291965158672be7d2590223de9169846eb
(HTM) Author: Annna Robert-Houdin <annna@bitreich.org>
Date: Sun, 12 Apr 2020 18:37:30 +0200
Add case for wolfram, so number and text formatting is better.
Diffstat:
M annna-start-services | 20 ++++++++++++++++----
1 file changed, 16 insertions(+), 4 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -193,13 +193,25 @@ then
| grep -v '^i ' \
| head -n -1 \
| tail -n +2 \
- | sed 's,i\(.*\)fake\texample.com.*,\1,;s,[ \t]*$,,' \
- | tr '\n' ' ' \
- | sed "s,^b',,;s,' $,," \
- | sed 's,\\n,\n,g;s,\\t,\t,g' \
+ | sed 's,i\(.*\)fake\texample.com.*,\1,;s,[ \t]*$,,')"
+
if [ -n "$dresult" ];
then
+ case "${dresult}" in
+ b*)
+ dresult="$(printf "%s\n" "${dresult}" \
+ | tr '\n' ' ' \
+ | sed "s,^b',,;s,' $,," \
+ | sed 's,^b",,;s," $,,' \
+ | sed 's,\\n,\n,g;s,\\t,\t,g')"
+ ;;
+ *)
+ dresult="$(printf "%s\n" "${dresult}" \
+ | tr -d '\n')"
+ ;;
+ esac
+
purl="$(printf "%s" "${dresult}" | /br/bin/bitreich-paste)"
else
purl="No matches found."