check_process: hardcode bsd path
This commit is contained in:
parent
4da505136e
commit
1e5615627f
|
@ -40,7 +40,7 @@ fi
|
|||
|
||||
if uname | grep -q "BSD"; then
|
||||
# have to run pgrep with sudo in BSD
|
||||
process_count=$(sudo pgrep -f "$process_name" 2>/dev/null | wc -l)
|
||||
process_count=$(sudo /bin/pgrep -f "$process_name" 2>/dev/null | wc -l)
|
||||
else
|
||||
process_count=$(pgrep -f "$process_name" 2>/dev/null | wc -l)
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue