diff --git a/install_all.sh b/install_all.sh index eedb96e..71ea1ce 100644 --- a/install_all.sh +++ b/install_all.sh @@ -7,6 +7,11 @@ then echo "Usage: ${0##*/} linux-1.2.3.tar.gz" exit 1 fi +if echo $PWD | grep -q :; then + echo "do not call this in a directory with : - make will fail" + exit 1 +fi + kernel_dir="`tar -tf $1 | sed '1 {s@^.*[[:blank:]]@@;s@linux-@@;s@/.*$@@;s@^\([0-9]\+\.[0-9]\+\.[0-9]\+\)\(.*\)@\1@;p;Q}'`" header_dir="$PWD/linux-glibc-devel-$kernel_dir" if test -d "$kernel_dir"