From b13992d8621db518dd58d7a617ecffaf06672cf3 Mon Sep 17 00:00:00 2001 From: Dan Walkes Date: Sat, 13 Aug 2022 18:50:41 -0600 Subject: [PATCH] Fix save config script Correctly handle the case where multiple linux directories exist --- save-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/save-config.sh b/save-config.sh index 9372d1f..c457859 100755 --- a/save-config.sh +++ b/save-config.sh @@ -7,7 +7,7 @@ source shared.sh mkdir -p base_external/configs/ make -C buildroot savedefconfig BR2_DEFCONFIG=${AESD_MODIFIED_DEFCONFIG_REL_BUILDROOT} -if [ -e buildroot/.config ] && [ -e buildroot/output/build/linux-*/.config ]; then +if [ -e buildroot/.config ] && [ ls buildroot/output/build/linux-*/.config 1> /dev/null 2>&1 ]; then grep "BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE" buildroot/.config > /dev/null if [ $? -eq 0 ]; then echo "Saving linux defconfig"