From 64d90f7143f7d5c11a32b1d6a00e39e47fef2532 Mon Sep 17 00:00:00 2001 From: Siphonight Date: Fri, 17 Jul 2026 09:24:06 +0200 Subject: [PATCH] Ajout d'arguments dans le update auto bw MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit L'argument -e de ps ne montre que le binaire/la commande lancée sans arguments sur certains systèmes, ce qui empêche la détection de fonctionner correctement et fait apparaitre une multitude de processus de mise à jour auto en background. Ajout de -f, car ce dernier renvoie la commande au complet et est standard POSIX. --- bw_cli_autolog.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bw_cli_autolog.sh b/bw_cli_autolog.sh index 8305330..fecff13 100644 --- a/bw_cli_autolog.sh +++ b/bw_cli_autolog.sh @@ -6,7 +6,7 @@ Bitwarden_Server="" # Variables internes au script Inception_Detect=0 # Détection de terminaux parents/enfants -Local_Version="2.2.8" +Local_Version="2.2.9" # Fonction de suppression et nettoyage des identités identities_destroy() { @@ -60,7 +60,7 @@ if [ "${BW_List}" != "" ]; then fi # shellcheck disable=SC2009 - if [ "$(ps -e | grep 'sh -c while true; do sleep 10; bw sync -f; done' | grep -cv 'grep')" = "0" ]; then + if [ "$(ps -ef | grep 'sh -c while true; do sleep 10; bw sync -f; done' | grep -cv 'grep')" = "0" ]; then nohup sh -c 'while true; do sleep 10; bw sync -f; done' >/dev/null 2>&1 & fi