aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-09-28 07:23:21 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-09-28 07:23:21 +0200
commit63f72b4fcc774b0b65ed06c42da177148b7de28b (patch)
treece6dd30001fbc29953ff3ef225e27c95945f66df
parentde7b87bfaa737c70b0958ef95e53b6e95b955142 (diff)
Fixup
-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