Added more error checking.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1968 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2010-08-21 09:23:25 +00:00
parent a738ab6d51
commit 010eeb258f

View File

@@ -29,6 +29,11 @@ fi
# Actual kernel source generation
if [ -e linux-${kernel_version} -o -e linux-$1 ]; then
echo "Error: directoy not clean."
exit 1
fi
echo "Extracting kernel sources ..."
tar xaf $TARBALLDIR/linux-${kernel_version}.tar.bz2 || exit $?
if [ "${patch_level}" != "" ]; then