mirror of
https://github.com/CISOfy/lynis.git
synced 2025-04-08 17:15:25 +02:00
Test if /etc/grub.d is a directory, instead always true
This commit is contained in:
parent
7df0b8618b
commit
8ee60cea35
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user