From 51e0e40123bd7b1f5faab921dd0af5a476438059 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 20 May 2023 20:08:40 +0100 Subject: build/payload/grub: remove unnecessary check sed does the same job as cp, in this situation Signed-off-by: Leah Rowe --- resources/scripts/build/payload/grub | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'resources/scripts') 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 -- cgit v1.2.1