From b9d6eeaa5d16e948e0cd9b2cbaaf9fba78fcb801 Mon Sep 17 00:00:00 2001 From: Siphonight Date: Fri, 18 Jul 2025 10:27:08 +0200 Subject: [PATCH] Correction bug infinite respawn bw sync background process --- bw_cli_autolog.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bw_cli_autolog.sh b/bw_cli_autolog.sh index 03b32f7..a3380ce 100644 --- a/bw_cli_autolog.sh +++ b/bw_cli_autolog.sh @@ -37,7 +37,7 @@ identities_create() { fi # shellcheck disable=SC2009 - if [ "$(ps -a | grep 'sh -c while true; do sleep 10; bw sync -f; done' | grep -cv 'grep')" = "0" ]; then + if [ "$(ps -ax | 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