Output wolfram is output directly to the channel, if linecount 1. - annna - Ann… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit ce8e1f4b2250b0db85fe1d70398d3b1bad4b0b65 | |
parent 38606e7b2a02549f542b44411aab957c2c1a4876 | |
Author: Annna Robert-Houdin <[email protected]> | |
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(-) | |
--- | |
diff --git a/annna-start-services b/annna-start-services | |
@@ -212,7 +212,14 @@ then | |
;; | |
esac | |
- purl="$(printf "%s" "${dresult}" | /br/bin/bit… | |
+ wcl="$(printf "%s" "${dresult}" | wc -l)" | |
+ | |
+ if [ $wcl -gt 1 ]; | |
+ then | |
+ purl="$(printf "%s" "${dresult}" | /br… | |
+ else | |
+ purl="${dresult}" | |
+ fi | |
else | |
purl="No matches found." | |
fi |