summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 10:22:08 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-30 10:22:08 (EDT)
commit618e41670702af8dc51909700c99b0c601a7547e (patch)
tree9b3909392891377510273efed2bd63ffb3fc1b64 /resources
parent8c1fe4093f57380af78aba4e7e9bdf83ba09a2df (diff)
downloadlibreboot-618e41670702af8dc51909700c99b0c601a7547e.zip
libreboot-618e41670702af8dc51909700c99b0c601a7547e.tar.gz
libreboot-618e41670702af8dc51909700c99b0c601a7547e.tar.bz2
grub-assemble/grub_memdisk_keymap: simplify for loop
Diffstat (limited to 'resources')
-rwxr-xr-xresources/utilities/grub-assemble/grub_memdisk_keymap5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/utilities/grub-assemble/grub_memdisk_keymap b/resources/utilities/grub-assemble/grub_memdisk_keymap
index 7444d36..451a69f 100755
--- a/resources/utilities/grub-assemble/grub_memdisk_keymap
+++ b/resources/utilities/grub-assemble/grub_memdisk_keymap
@@ -22,9 +22,8 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
-keymaps="$(for keymap in keymap/original/*; do printf "%s\n" "${keymap##*/}"; done)"
-
-for keymap in ${keymaps}
+for keylayout in keymap/original/*
do
+ keymap="${keylayout##*/}"
printf "/boot/grub/layouts/%s.gkb=keymap/%s.gkb " "${keymap}" "${keymap}"
done