From 618e41670702af8dc51909700c99b0c601a7547e Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 15:22:08 +0100 Subject: grub-assemble/grub_memdisk_keymap: simplify for loop --- resources/utilities/grub-assemble/grub_memdisk_keymap | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'resources/utilities/grub-assemble') 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 -- cgit v1.2.3-70-g09d2