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:
authorMichael Boelen <michael.boelen@cisofy.com>2019-09-17 15:04:30 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2019-09-17 15:04:30 +0300
commit98017c78cac83d3370861797a3d2f716e8948481 (patch)
treec3630b67146bed36ec6f1273b236030e4dafe1d9 /include/tests_usb
parent95e9e808346a95e8810b94eaa589fa7cef814758 (diff)
Implemented several code style improvements
Diffstat (limited to 'include/tests_usb')
-rw-r--r--include/tests_usb4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/tests_usb b/include/tests_usb
index 3ba19cc9..36058490 100644
--- a/include/tests_usb
+++ b/include/tests_usb
@@ -96,11 +96,11 @@
USBDEVICESPATH="${ROOTDIR}sys/bus/usb/devices/usb"
for device in "${USBDEVICESPATH}"*; do
if [ -e "${device}/authorized" -o -e "${device}/authorized_default" ]; then
- if [ $(cat "${device}/authorized_default") -eq 1 ]; then
+ if [ "$(cat "${device}/authorized_default")" = "1" ]; then
FOUND=1
LogText "Test: ${device} is authorized by default"
Report "usb_authorized_default_device[]=${device}"
- elif [ $(cat "${device}/authorized") -eq 1 ]; then
+ elif [ "$(cat "${device}/authorized")" = "1" ]; then
FOUND=1
LogText "Test: ${device} is authorized currently"
Report "usb_authorized_device[]=${device}"