diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-11-05 14:28:43 (EST) |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-11-05 14:28:43 (EST) |
commit | 02f43b2f7c932d667127de546904935619512782 (patch) | |
tree | 9812bfb28b9edb70e928ba0d0061d6b1d270da9a /resources/utilities | |
parent | 5f46ca4dd142548cdabd0d507fa891429aa696a6 (diff) | |
download | libreboot-02f43b2f7c932d667127de546904935619512782.zip libreboot-02f43b2f7c932d667127de546904935619512782.tar.gz libreboot-02f43b2f7c932d667127de546904935619512782.tar.bz2 |
grub-assemble: simplify if/for blocks
Diffstat (limited to 'resources/utilities')
-rwxr-xr-x | resources/utilities/grub-assemble/gen.sh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh index 55bae84..c532a1a 100755 --- 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" \ |