From f77e56ed4b1f8aea5113f4928422bd994ad9fa90 Mon Sep 17 00:00:00 2001 From: Marzal <2069735+Marzal@users.noreply.github.com> Date: Sun, 29 Sep 2019 21:17:52 +0200 Subject: Prefer [ p ] && [ q ] as [ p -a q ] is not well defined. SC2166 --- include/tests_storage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/tests_storage') 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 -- cgit v1.2.3