From 09a60783a69868506e8621079f8d7f42871f08ee Mon Sep 17 00:00:00 2001 From: Marzal <2069735+Marzal@users.noreply.github.com> Date: Thu, 19 Sep 2019 20:00:12 +0200 Subject: [PATCH] Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.SC2166 --- include/functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/functions b/include/functions index 7d003976..2484f76a 100644 --- a/include/functions +++ b/include/functions @@ -1527,7 +1527,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 [ -n "${PGREPBINARY}" -a ! "${OS}" = "AIX" ]; then + if [ -n "${PGREPBINARY}" ] && [ "${OS}" != "AIX" ]; then # When --user is used, perform a search using the -u option # Initialize users for strict mode if [ -n "${users:-}" ]; then