fix exact grep
This commit is contained in:
parent
784cda10eb
commit
d5886da0a4
@ -40,7 +40,7 @@ fi
|
||||
# lockfile check
|
||||
if [[ -f "${LOCKFILE}" ]] ; then
|
||||
# check if stale lockfile
|
||||
if [[ $(pgrep -c btrbk || true) -eq 0 ]] ; then
|
||||
if [[ $(pgrep --exact --count btrbk || true) -eq 0 ]] ; then
|
||||
echo "Removing stale lock file: ${LOCKFILE}"
|
||||
rm "${LOCKFILE}"
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user