mirror of
https://github.com/CISOfy/lynis.git
synced 2026-03-11 08:55:28 +00:00
Test if /etc/grub.d is a directory, instead always true
This commit is contained in:
parent
7df0b8618b
commit
8ee60cea35
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue