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}"