From 54e1faec4c0826eb2142288aa6c514132f13ecbc Mon Sep 17 00:00:00 2001 From: zhanghj Date: Wed, 9 Feb 2022 17:13:04 +0800 Subject: [PATCH] scripts: fix a typo while to check build_type check $build_type is not an empty string instead of equal to "true". Fixes: #3635 Signed-off-by: zhanghj --- tools/packaging/kernel/build-kernel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/packaging/kernel/build-kernel.sh b/tools/packaging/kernel/build-kernel.sh index 0aa831f657..0e158e7c44 100755 --- a/tools/packaging/kernel/build-kernel.sh +++ b/tools/packaging/kernel/build-kernel.sh @@ -352,7 +352,7 @@ setup_kernel() { ${packaging_scripts_dir}/apply_patches.sh "${patches_dir_for_version}" # Apply version specific patches for build_type build - if [ "${build_type}" == "true" ] ;then + if [ "${build_type}" != "" ] ;then info "Apply build_type patches from ${build_type_patches_dir}" ${packaging_scripts_dir}/apply_patches.sh "${build_type_patches_dir}" fi