From 7754459ae3552ec39828ac6a5f8a4afb6aea36b7 Mon Sep 17 00:00:00 2001 From: unfr Date: Wed, 12 Nov 2025 15:51:08 +0100 Subject: [PATCH] reeciture verification service --- autopost/posteur.sh | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/autopost/posteur.sh b/autopost/posteur.sh index 85571b0..3554c2f 100644 --- a/autopost/posteur.sh +++ b/autopost/posteur.sh @@ -19,14 +19,12 @@ attente() { } checkusenet(){ - SERVICE="nyuu" - if pgrep -x "$SERVICE" >/dev/null - then - echo "$SERVICE EN COURS" - sleep 16 - else - echo "$SERVICE OK" - fi + SERVICE="nyuu" + while pgrep -x "$SERVICE" >/dev/null; do + echo "$SERVICE EN COURS" + sleep 16 + done + echo "$SERVICE OK" } cd "${DOSSIER_GLOBAL}"