mirror of
https://github.com/krizsipeti/custom_blfs_packages.git
synced 2025-01-23 14:32:21 +08:00
Force delete old kernel folder in sourced directory
This commit is contained in:
parent
331294d1f8
commit
89a5b1b1ee
@ -213,7 +213,7 @@ _create_kernel_config_if_needed()
|
|||||||
local orig_folder=$(pwd)
|
local orig_folder=$(pwd)
|
||||||
cd "$dir_sources" || return 1
|
cd "$dir_sources" || return 1
|
||||||
if [ -d "linux-$latest_kernel_ver" ] ; then
|
if [ -d "linux-$latest_kernel_ver" ] ; then
|
||||||
rm -rf "linux-$latest_kernel_ver" || return 1
|
sudo rm -rf "linux-$latest_kernel_ver" || return 1
|
||||||
fi
|
fi
|
||||||
tar -xf "$file_name" || return 1
|
tar -xf "$file_name" || return 1
|
||||||
cd "linux-$latest_kernel_ver" || return 1
|
cd "linux-$latest_kernel_ver" || return 1
|
||||||
|
Loading…
Reference in New Issue
Block a user