aboutsummaryrefslogtreecommitdiff
path: root/resources/utilities/grub-assemble/grub_memdisk_keymap
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 15:22:08 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-30 15:22:08 +0100
commit618e41670702af8dc51909700c99b0c601a7547e (patch)
tree9b3909392891377510273efed2bd63ffb3fc1b64 /resources/utilities/grub-assemble/grub_memdisk_keymap
parent8c1fe4093f57380af78aba4e7e9bdf83ba09a2df (diff)
downloadlibrebootfr-618e41670702af8dc51909700c99b0c601a7547e.tar.gz
librebootfr-618e41670702af8dc51909700c99b0c601a7547e.zip
grub-assemble/grub_memdisk_keymap: simplify for loop
Diffstat (limited to 'resources/utilities/grub-assemble/grub_memdisk_keymap')
-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 7444d360..451a69f3 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