fix exact grep
This commit is contained in:
parent
784cda10eb
commit
d5886da0a4
@ -40,7 +40,7 @@ fi
|
|||||||
# lockfile check
|
# lockfile check
|
||||||
if [[ -f "${LOCKFILE}" ]] ; then
|
if [[ -f "${LOCKFILE}" ]] ; then
|
||||||
# check if stale lockfile
|
# 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}"
|
echo "Removing stale lock file: ${LOCKFILE}"
|
||||||
rm "${LOCKFILE}"
|
rm "${LOCKFILE}"
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user