flatten the while/if loop using conitinue - 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 943d44215057ce4f29d99c06c30be236fcfff065
(DIR) parent b17b70bb499d4e446b86fdc682611d2047c71d57
(HTM) Author: Josuah Demangeon <mail@josuah.net>
Date: Mon, 8 Mar 2021 00:48:55 +0100
flatten the while/if loop using conitinue
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M annna-start-services | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
(DIR) diff --git a/annna-start-services b/annna-start-services
@@ -815,8 +815,11 @@ do
[ -p "${iibase}/${channel}/in" ] \
&& chmod o+w "${iibase}/${channel}/in"
- if [ -f "${iibase}/${channel}/out" ];
+ if [ ! -f "${iibase}/${channel}/out" ];
then
+ continue
+ fi
+
{
ls "${iibase}/${channel}/out" | entr tail -n 1 "${iibase}/${channel}/out" \
| sed -nu 's,[0-9]* <\([^ >]*\)> \(.*\),\1 \2,p' \
@@ -834,6 +837,5 @@ do
done
}
} &
- fi
done