diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-11-05 19:28:43 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-11-05 19:28:43 +0000 |
commit | 02f43b2f7c932d667127de546904935619512782 (patch) | |
tree | 9812bfb28b9edb70e928ba0d0061d6b1d270da9a /resources/utilities/grub-assemble | |
parent | 5f46ca4dd142548cdabd0d507fa891429aa696a6 (diff) | |
download | librebootfr-02f43b2f7c932d667127de546904935619512782.tar.gz librebootfr-02f43b2f7c932d667127de546904935619512782.zip |
grub-assemble: simplify if/for blocks
Diffstat (limited to 'resources/utilities/grub-assemble')
-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 55bae843..c532a1a1 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" \ |