This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 27685aa179 Fix config repeat define in include deconfig mode
27685aa179 is described below

commit 27685aa179ad7608394fb8a97e11ef532888a75d
Author: yezhonghui <[email protected]>
AuthorDate: Tue Sep 24 20:05:27 2024 +0800

    Fix config repeat define in include deconfig mode
    
    Signed-off-by: yezhonghui <[email protected]>
---
 tools/process_config.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tools/process_config.sh b/tools/process_config.sh
index a9aaf14318..6d1be7e55a 100755
--- a/tools/process_config.sh
+++ b/tools/process_config.sh
@@ -56,6 +56,8 @@ process_file() {
                 exit 1
             fi
         else
+            local key_config="$(echo "$line" | cut -d= -f1)="
+            sed -i "/$key_config/d" $output_file
             echo "$line" >> $output_file
         fi
     done < "$input_file"

Reply via email to