From 125107415720c59b9e2ead2b791fb92ad6be1996 Mon Sep 17 00:00:00 2001 From: ophub Date: Tue, 25 Jan 2022 21:52:12 +0800 Subject: [PATCH] The latest template is selected by default --- recompile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recompile b/recompile index 26fec8b6c8..4f55e1ccd3 100755 --- a/recompile +++ b/recompile @@ -275,7 +275,7 @@ make_kernel() { if [ ! -f ".config" ]; then # Copy config file echo -e "${INFO} Copy config file to ${local_kernel_dirname}" - config_demo=$(ls ${config_dir}/config-${kernel_verpatch}* 2>/dev/null | head -n 1) + config_demo=$(ls ${config_dir}/config-${kernel_verpatch}* 2>/dev/null | sort -rV | head -n 1) config_demo_file=${config_demo##*/} [ -z "${config_demo_file}" ] && error_msg "Missing [ config-${kernel_verpatch}* ] template!" echo -e "${INFO} CONFIG_DEMO: [ ${config_dir}/${config_demo_file} ]"