tools/process_config.sh: Fix sed errors
Ignore commented-out lines when deleting repeated defines in defconfig Signed-off-by: Antoine Juckler <6445757+ajuckler@users.noreply.github.com>
This commit is contained in:
parent
f45216ecb3
commit
eea2975b36
1 changed files with 4 additions and 2 deletions
|
|
@ -57,8 +57,10 @@ process_file() {
|
|||
fi
|
||||
else
|
||||
if [[ -n "$line" ]]; then
|
||||
if [[ ! "$line" == \#* ]]; then
|
||||
local key_config="$(echo "$line" | cut -d= -f1)="
|
||||
sed -i.backup "/^$key_config/d" "$output_file"
|
||||
fi
|
||||
echo "$line" >> "$output_file"
|
||||
fi
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue