summaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 10:06:43 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-30 10:06:43 (EDT)
commite1ddb130d9ac48cbd6abdc42adc5581825a42e46 (patch)
tree882af7daaef8dceff21c0c2345057506bf17bdea /resources
parent4dc83bd7c03b233fccc1cea5848d41899d916939 (diff)
downloadlibreboot-e1ddb130d9ac48cbd6abdc42adc5581825a42e46.zip
libreboot-e1ddb130d9ac48cbd6abdc42adc5581825a42e46.tar.gz
libreboot-e1ddb130d9ac48cbd6abdc42adc5581825a42e46.tar.bz2
build/roms/withgrub: simplify for loop
Diffstat (limited to 'resources')
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub
index 7283c1a..943afbf 100755
--- a/resources/scripts/helpers/build/roms/withgrub
+++ b/resources/scripts/helpers/build/roms/withgrub
@@ -44,8 +44,9 @@ do
cd "../../../coreboot"
# GRUB configuration files
- for keymap in $(for keylayout in ../resources/utilities/grub-assemble/keymap/original/*; do printf "%s\n" "${keylayout##*/}"; done)
+ for keylayout in ../resources/utilities/grub-assemble/keymap/original/*
do
+ keymap="${keylayout##*/}"
cat "../resources/grub/config/extra/common.cfg" > "grub_${keymap}_${romtype}.cfg"
cat "../resources/grub/config/extra/${romtype}.cfg" >> "grub_${keymap}_${romtype}.cfg"
printf "keymap %s\n" "${keymap}" >> "grub_${keymap}_${romtype}.cfg"