From e1ddb130d9ac48cbd6abdc42adc5581825a42e46 Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 15:06:43 +0100 Subject: build/roms/withgrub: simplify for loop --- resources/scripts/helpers/build/roms/withgrub | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'resources/scripts') diff --git a/resources/scripts/helpers/build/roms/withgrub b/resources/scripts/helpers/build/roms/withgrub index 7283c1ac..943afbf1 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" -- cgit v1.2.3-70-g09d2