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:
authorSimon Biewald <simon@fam-biewald.de>2020-08-09 01:16:23 +0300
committerSimon Biewald <simon@fam-biewald.de>2020-10-25 23:14:08 +0300
commit8ee60cea3532e9100f30e2aff0a1a8586c5dbcc4 (patch)
tree8f53233415f26ff7ab785e48dd57b203f9da233a /include/tests_boot_services
parent7df0b8618b5cce39961b245a3c582af4294276d7 (diff)
Test if /etc/grub.d is a directory, instead always true
Diffstat (limited to 'include/tests_boot_services')
-rw-r--r--include/tests_boot_services2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_boot_services b/include/tests_boot_services
index fe5707e4..87871589 100644
--- a/include/tests_boot_services
+++ b/include/tests_boot_services
@@ -332,7 +332,7 @@
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
- if [ "${ROOTDIR}etc/grub.d" ]; then
+ if [ -d "${ROOTDIR}etc/grub.d" ]; then
CONF_FILES=$(${FINDBINARY} "${ROOTDIR}etc/grub.d" -type f -name "[0-9][0-9]*" -print0 | ${TRBINARY} '\0' ' ' | ${TRBINARY} -d '[:cntrl:]')
CONF_FILES="${GRUBCONFFILE} ${ROOTDIR}boot/grub/custom.cfg ${CONF_FILES}"
else