check_process: hardcode bsd path

This commit is contained in:
Cyberes 2024-02-26 15:13:42 -07:00
parent 4da505136e
commit 1e5615627f
1 changed files with 1 additions and 1 deletions

View File

@ -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