Fix config repeat define in include deconfig mode
Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
This commit is contained in:
parent
2dcd300a3c
commit
27685aa179
1 changed files with 2 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue