From 5d2405eb2e76acb0321d63f1229b65b173b5aee9 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 27 Nov 2023 13:15:19 +0100 Subject: [PATCH] packages: grub: payload: cleanup line length and whitespaces. This should contain no functional modifications. Signed-off-by: Denis 'GNUtoo' Carikli Acked-by: Adrien 'neox' Bourmault neox: wrote the commit message --- resources/packages/grub/payload | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/resources/packages/grub/payload b/resources/packages/grub/payload index 7e4f810..8fe593c 100755 --- a/resources/packages/grub/payload +++ b/resources/packages/grub/payload @@ -21,7 +21,8 @@ [ "x${DEBUG+set}" = 'xset' ] && set -v set -u -e -# This is where GRUB is expected to be (outside of the grub-assemble, instead in main checkout) +# This is where GRUB is expected to be (outside of the grub-assemble, +# instead in main checkout) source "resources/grub/modules.list" printf "Creating GRUB payloads and configuration files\n" @@ -61,15 +62,20 @@ for keylayoutfile in resources/grub/keymap/*.gkb; do /boot/grub/layouts/${keymap}.gkb=${keylayoutfile} - if [ "${keymap}" = "usqwerty" ]; then + if [ "${keymap}" = "usqwerty" ]; then cp resources/grub/config/grub.cfg payload/grub/grub_usqwerty.cfg else - sed "s/usqwerty/${keymap}/" < resources/grub/config/grub.cfg > payload/grub/grub_${keymap}.cfg + sed "s/usqwerty/${keymap}/" \ + < resources/grub/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 + sed "s/grubtest.cfg/grub.cfg/" \ + < payload/grub/grub_${keymap}.cfg \ + > payload/grub/grub_${keymap}_test.cfg - printf "Generated: 'payload/grub/grub_%s.elf' and configs.'\n" "${keymap}" + printf "Generated: 'payload/grub/grub_%s.elf' and configs.'\n" \ + "${keymap}" done printf "Done! Check payload/grub/ to see the files.\n\n"