Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarzal <2069735+Marzal@users.noreply.github.com>2019-09-19 21:00:12 +0300
committerMarzal <2069735+Marzal@users.noreply.github.com>2019-09-19 21:00:12 +0300
commit09a60783a69868506e8621079f8d7f42871f08ee (patch)
tree80880ea7234719f2bf144df8d77c2e1cf38e6955 /include/functions
parent6cf0b28f2ccd7b4c04f41e985735bbe68ec2a023 (diff)
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined.SC2166
Diffstat (limited to 'include/functions')
-rw-r--r--include/functions2
1 files changed, 1 insertions, 1 deletions
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