From: Eric Edgar Date: Mon, 11 Jul 2005 18:30:50 +0000 (+0000) Subject: Fix bug 97700. Add additional check for kernel source directory earlier X-Git-Tag: v3.4.10.902~504 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=337696ff03ab102a6b611be9fd7d94230aa6811c;p=genkernel.git 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 --- 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