From 89a5b1b1ee65aa8df78ca88828ab9465a0d82b67 Mon Sep 17 00:00:00 2001 From: pkr Date: Wed, 27 Nov 2024 20:39:11 +0100 Subject: [PATCH] Force delete old kernel folder in sourced directory --- libs/func_kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/func_kernel.sh b/libs/func_kernel.sh index 5ab8ec7..75a0602 100644 --- a/libs/func_kernel.sh +++ b/libs/func_kernel.sh @@ -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