Fix bug 97700. Add additional check for kernel source directory earlier
authorEric Edgar <rocket@gentoo.org>
Mon, 11 Jul 2005 18:30:50 +0000 (18:30 +0000)
committerEric Edgar <rocket@gentoo.org>
Mon, 11 Jul 2005 18:30:50 +0000 (18:30 +0000)
git-svn-id: svn+ssh://svn.gentoo.org/var/svnroot/genkernel/trunk@248 67a159dc-881f-0410-a524-ba9dfbe2cb84

gen_determineargs.sh

index 7a968297c69024b0166b928bc82134342104299c..f6ce9248db603748fbfba3197f746deb2dbd723e 100644 (file)
@@ -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