Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.SC2166

This commit is contained in:
Marzal 2019-09-19 20:00:12 +02:00
parent 6cf0b28f2c
commit 09a60783a6
1 changed files with 1 additions and 1 deletions

View File

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