From 8c1fe4093f57380af78aba4e7e9bdf83ba09a2df Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 30 Aug 2015 10:15:43 -0400 Subject: build/roms/withgrub_helper: simplify for loop --- (limited to 'resources/scripts/helpers/build/roms/withgrub_helper') 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" -- cgit v0.9.1