summaryrefslogtreecommitdiffstats
path: root/resources/utilities
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-29 21:51:15 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-29 21:51:15 (EDT)
commit54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0 (patch)
tree90725abc344c3a06f42dc3de7054090a7ed63de6 /resources/utilities
parentfd9368b2dd1817a6f0ca30adb4fcc4391264888a (diff)
downloadlibreboot-54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0.zip
libreboot-54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0.tar.gz
libreboot-54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0.tar.bz2
grub-assemble/grub_memdisk_keymap: don't use ls
Diffstat (limited to 'resources/utilities')
-rwxr-xr-xresources/utilities/grub-assemble/grub_memdisk_keymap4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/utilities/grub-assemble/grub_memdisk_keymap b/resources/utilities/grub-assemble/grub_memdisk_keymap
index 657355f..7444d36 100755
--- a/resources/utilities/grub-assemble/grub_memdisk_keymap
+++ b/resources/utilities/grub-assemble/grub_memdisk_keymap
@@ -22,7 +22,9 @@
[ "x${DEBUG+set}" = 'xset' ] && set -v
set -u -e
-for keymap in $(ls keymap/original)
+keymaps="$(for keymap in keymap/original/*; do printf "%s\n" "${keymap##*/}"; done)"
+
+for keymap in ${keymaps}
do
printf "/boot/grub/layouts/%s.gkb=keymap/%s.gkb " "${keymap}" "${keymap}"
done