From 337696ff03ab102a6b611be9fd7d94230aa6811c Mon Sep 17 00:00:00 2001 From: Eric Edgar Date: Mon, 11 Jul 2005 18:30:50 +0000 Subject: [PATCH] Fix bug 97700. Add additional check for kernel source directory earlier git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@248 67a159dc-881f-0410-a524-ba9dfbe2cb84 --- gen_determineargs.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gen_determineargs.sh b/gen_determineargs.sh index 7a96829..f6ce924 100644 --- a/gen_determineargs.sh +++ b/gen_determineargs.sh @@ -73,6 +73,14 @@ determine_real_args() { else KERNEL_DIR=${DEFAULT_KERNEL_SOURCE} fi + + if [ "${CMD_NO_KERNEL_SOURCES}" != "1" ] + then + if [ ! -d ${KERNEL_DIR} ] + then + gen_die "kernel source directory \"${KERNEL_DIR}\" was not found!" + fi + fi if [ "${CMD_KERNCACHE}" != "" ] then -- 2.26.2