aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbootstrap5
1 files changed, 3 insertions, 2 deletions
diff --git a/bootstrap b/bootstrap
index e88c4ca..c7b07dd 100755
--- a/bootstrap
+++ b/bootstrap
@@ -496,8 +496,9 @@ if [ -z "$kernel_source" ]; then
mv linux-source-*/ linux
xzcat linux-config-*/config.${debian_arch}_none_${debian_arch}.xz >linux/.config
else
- tar xf $kernel_source
- mv \$(sed -re 's/(.+)\.tar\..+/\1/' <<<$kernel_source) linux
+ kernel_source=\$(basename $kernel_source)
+ tar xf \$kernel_source
+ mv \$(sed -re 's/(.+)\.tar\..+/\1/' <<<\$kernel_source) linux
fi
cd linux