libreboot

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 02f43b2f7c932d667127de546904935619512782
parent 5f46ca4dd142548cdabd0d507fa891429aa696a6
Author: Francis Rowe <info@gluglug.org.uk>
Date:   Thu,  5 Nov 2015 19:28:43 +0000

grub-assemble: simplify if/for blocks

Diffstat:
resources/utilities/grub-assemble/gen.sh | 6++----
1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh @@ -35,8 +35,7 @@ grubdir="../../../grub" source "modules.conf" list_keymaps () { - for keylayout in keymap/original/* - do + for keylayout in keymap/original/*; do keymap="${keylayout##*/}" printf "/boot/grub/layouts/%s.gkb=keymap/%s.gkb " "${keymap}" "${keymap}" done @@ -44,8 +43,7 @@ list_keymaps () { keymaps=$(list_keymaps) printf "Creating GRUB ELF executable for configuration '%s'\n" "${1}" -if [ "${1}" = "vesafb" ] -then +if [ "${1}" = "vesafb" ]; then # Generate the grub.elf (vesafb) $grubdir/grub-mkstandalone \ --grub-mkimage="${grubdir}/grub-mkimage" \