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-29 22:17:52 +0300
committerMarzal <2069735+Marzal@users.noreply.github.com>2019-09-29 22:17:52 +0300
commitf77e56ed4b1f8aea5113f4928422bd994ad9fa90 (patch)
tree51c1c045f546a11ade12168ea5217a18c6b493b0 /include/tests_storage
parenta052a107d3f6da9836cb2c9a22d9dc1068e80bc7 (diff)
Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. SC2166
Diffstat (limited to 'include/tests_storage')
-rw-r--r--include/tests_storage4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_storage b/include/tests_storage
index c355a72b..8cf13b78 100644
--- a/include/tests_storage
+++ b/include/tests_storage
@@ -40,7 +40,7 @@
if [ -n "${FIND}" ]; then
FIND1=$(${EGREPBINARY} "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
FIND2=$(${EGREPBINARY} "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" ${ROOTDIR}etc/modprobe.d/* | ${GREPBINARY} -v "#")
- if [ -n "${FIND1}" -o -n "${FIND2}" ]; then
+ if [ -n "${FIND1}" ] || [ -n "${FIND2}" ]; then
FOUND=1
LogText "Result: found firewire ohci driver in disabled state"
fi
@@ -51,7 +51,7 @@
if [ -f "${ROOTDIR}etc/modprobe.conf" ]; then
FIND1=$(${EGREPBINARY} -r "blacklist (ohci1394|firewire[-_]ohci|firewire-core)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
FIND2=$(${EGREPBINARY} -r "install (ohci1394|firewire[-_]ohci|firewire-core) /bin/(false|true)" "${ROOTDIR}etc/modprobe.conf" | ${GREPBINARY} -v "#")
- if [ -n "${FIND1}" -o -n "${FIND2}" ]; then
+ if [ -n "${FIND1}" ] || [ -n "${FIND2}" ]; then
FOUND=1
LogText "Result: found firewire ohci driver in disabled state"
fi