summaryrefslogtreecommitdiffstats
path: root/resources/scripts
diff options
context:
space:
mode:
authorFrancis Rowe <info@gluglug.org.uk>2015-08-30 10:15:43 (EDT)
committer Francis Rowe <info@gluglug.org.uk>2015-08-30 10:15:43 (EDT)
commit8c1fe4093f57380af78aba4e7e9bdf83ba09a2df (patch)
treecb86ff75ad23d88f8129dff935c3dabb4f225a97 /resources/scripts
parente1ddb130d9ac48cbd6abdc42adc5581825a42e46 (diff)
downloadlibreboot-8c1fe4093f57380af78aba4e7e9bdf83ba09a2df.zip
libreboot-8c1fe4093f57380af78aba4e7e9bdf83ba09a2df.tar.gz
libreboot-8c1fe4093f57380af78aba4e7e9bdf83ba09a2df.tar.bz2
build/roms/withgrub_helper: simplify for loop
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/helpers/build/roms/withgrub_helper4
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/scripts/helpers/build/roms/withgrub_helper b/resources/scripts/helpers/build/roms/withgrub_helper
index 7dbd9f6..4869ae7 100755
--- a/resources/scripts/helpers/build/roms/withgrub_helper
+++ b/resources/scripts/helpers/build/roms/withgrub_helper
@@ -99,8 +99,10 @@ do
fi
# Add the correct GRUB configuration file for this image.
- 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##*/}"
+
# copy the images based on the keymap
cp "${boardtarget}_${romtype}.rom" "${boardtarget}_${keymap}_${romtype}.rom"