diff options
author | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 15:22:08 +0100 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2015-08-30 15:22:08 +0100 |
commit | 618e41670702af8dc51909700c99b0c601a7547e (patch) | |
tree | 9b3909392891377510273efed2bd63ffb3fc1b64 /resources/utilities | |
parent | 8c1fe4093f57380af78aba4e7e9bdf83ba09a2df (diff) | |
download | librebootfr-618e41670702af8dc51909700c99b0c601a7547e.tar.gz librebootfr-618e41670702af8dc51909700c99b0c601a7547e.zip |
grub-assemble/grub_memdisk_keymap: simplify for loop
Diffstat (limited to 'resources/utilities')
-rwxr-xr-x | resources/utilities/grub-assemble/grub_memdisk_keymap | 5 |
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 |