Correction bug infinite respawn bw sync background process

This commit is contained in:
Siphonight 2025-07-18 10:27:08 +02:00
parent dcdbf88ed7
commit b9d6eeaa5d

View File

@ -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