aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 02:51:15 +0100
committerFrancis Rowe <info@gluglug.org.uk>2015-08-30 02:51:15 +0100
commit54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0 (patch)
tree90725abc344c3a06f42dc3de7054090a7ed63de6
parentfd9368b2dd1817a6f0ca30adb4fcc4391264888a (diff)
downloadlibrebootfr-54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0.tar.gz
librebootfr-54aa29ae12ff414f4e23b7fa9bc9ba9c090782e0.zip
grub-assemble/grub_memdisk_keymap: don't use ls
-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 657355f6..7444d360 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