summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-20 20:08:40 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-20 20:08:40 +0100
commit51e0e40123bd7b1f5faab921dd0af5a476438059 (patch)
tree0846e65cb35bc989c4ccdf00a486999cc80e0f0c /resources
parent8e206be7c842e2e6487d6b57b573b2d198b6b960 (diff)
build/payload/grub: remove unnecessary check
sed does the same job as cp, in this situation Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/build/payload/grub11
1 files changed, 3 insertions, 8 deletions
diff --git a/resources/scripts/build/payload/grub b/resources/scripts/build/payload/grub
index de644006..d170f501 100755
--- a/resources/scripts/build/payload/grub
+++ b/resources/scripts/build/payload/grub
@@ -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/usqwerty/${keymap}/" \
+ < ${grubcfgsdir}/config/grub.cfg \
+ > payload/grub/grub_${keymap}.cfg
sed "s/grubtest.cfg/grub.cfg/" \
< payload/grub/grub_${keymap}.cfg \
> payload/grub/grub_${keymap}_test.cfg