mirror of https://github.com/CISOfy/lynis.git
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.SC2166
This commit is contained in:
parent
6cf0b28f2c
commit
09a60783a6
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue