build/payload/grub: remove unnecessary check

sed does the same job as cp, in this situation

Signed-off-by: Leah Rowe <leah@libreboot.org>
fsdg20230625
Leah Rowe 2023-05-20 20:08:40 +01:00
parent 8e206be7c8
commit 51e0e40123
1 changed files with 3 additions and 8 deletions

View File

@ -87,14 +87,9 @@ build_grub_elf()
create_grub_configs()
{
if [ "${keymap}" = "usqwerty" ]; then
cp ${grubcfgsdir}/config/grub.cfg \
payload/grub/grub_usqwerty.cfg
else
sed "s/usqwerty/${keymap}/" \
< ${grubcfgsdir}/config/grub.cfg \
> payload/grub/grub_${keymap}.cfg
fi
sed "s/grubtest.cfg/grub.cfg/" \
< payload/grub/grub_${keymap}.cfg \
> payload/grub/grub_${keymap}_test.cfg