mirror of https://github.com/CISOfy/lynis.git
Merge pull request #1059 from Varbin/solaris-grub-d
Test if /etc/grub.d is a directory
This commit is contained in:
commit
22a9fe7037
|
@ -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 New Issue