mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-26 16:39:24 +00:00
fix pgrep by using --full for checking whole command line for name
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
908e80eb0b
commit
5a07956672
@ -13,7 +13,7 @@ if [[ -z ${PROC_NAME} ]]; then
|
||||
fi
|
||||
|
||||
for ((i = 0; i < ${STEPS}; i += 1)); do
|
||||
if pgrep ${PROC_NAME} > /dev/null; then
|
||||
if pgrep -f ${PROC_NAME} > /dev/null; then
|
||||
echo "Process found. Sleeping ${SLEEP_SEC}..." >&2
|
||||
sleep ${SLEEP_SEC}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user