mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.SC2166
This commit is contained in:
parent
6cf0b28f2c
commit
09a60783a6
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue