diff options
author | Thomas Sjögren <konstruktoid@users.noreply.github.com> | 2020-10-21 12:27:44 +0300 |
---|---|---|
committer | Thomas Sjögren <konstruktoid@users.noreply.github.com> | 2020-10-21 12:27:44 +0300 |
commit | 3124a04ce9ace5a9bc650a70aac940b3bcacac9d (patch) | |
tree | 04ef7f64042c701d0eab5cd33a3fd07fa608eb56 /include/functions | |
parent | 92df49d08e605e27941397f8057a3dc00890f35a (diff) |
require pgrep before usage
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
Diffstat (limited to 'include/functions')
-rw-r--r-- | include/functions | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/functions b/include/functions index 8cd95aec..6964da20 100644 --- a/include/functions +++ b/include/functions @@ -1547,8 +1547,7 @@ if [ -z "${search}" ]; then ExitFatal "Missing process to search for when using IsRunning function"; fi RUNNING=0 - # AIX does not fully support pgrep options, so using ps instead - if [ "${OS}" != "AIX" ]; then + if [ -x "${PGREPBINARY}" ] && [ "${OS}" != "AIX" ]; then # When --user is used, perform a search using the -u option # Initialize users for strict mode if [ -n "${users:-}" ]; then |