Correction bug infinite respawn bw sync background process
This commit is contained in:
parent
dcdbf88ed7
commit
b9d6eeaa5d
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user