From 02f43b2f7c932d667127de546904935619512782 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Thu, 05 Nov 2015 14:28:43 -0500 Subject: grub-assemble: simplify if/for blocks --- (limited to 'resources/utilities/grub-assemble') 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" \ -- cgit v0.9.1