From 8ee60cea3532e9100f30e2aff0a1a8586c5dbcc4 Mon Sep 17 00:00:00 2001 From: Simon Biewald Date: Sat, 8 Aug 2020 22:16:23 +0000 Subject: Test if /etc/grub.d is a directory, instead always true --- include/tests_boot_services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3