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>2020-11-13 18:45:59 +0300
committerGitHub <noreply@github.com>2020-11-13 18:45:59 +0300
commit22a9fe703755bd83a9b4363b1ccc06c93e06148c (patch)
treec750aa982696fc5c205e6526d5d247fd77957ef8 /include/tests_boot_services
parentcbb2735e636a5671e6df685631abd3e073f4e944 (diff)
parent8ee60cea3532e9100f30e2aff0a1a8586c5dbcc4 (diff)
Merge pull request #1059 from Varbin/solaris-grub-d
Test if /etc/grub.d is a directory
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 c86ca52c..5e4e5629 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