Force delete old kernel folder in sourced directory

This commit is contained in:
pkr 2024-11-27 20:39:11 +01:00
parent 331294d1f8
commit 89a5b1b1ee

View File

@ -213,7 +213,7 @@ _create_kernel_config_if_needed()
local orig_folder=$(pwd)
cd "$dir_sources" || return 1
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
tar -xf "$file_name" || return 1
cd "linux-$latest_kernel_ver" || return 1