aboutsummaryrefslogtreecommitdiff
path: root/projects
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2017-09-14 08:25:50 -0400
committerAndrew Robbins <contact@andrewrobbins.info>2017-09-14 08:28:05 -0400
commitddf95932704dcf45259ccb6d2e766f1bf1c78f0c (patch)
treed6c6a47d0617d6db393a295ffd7e47958a96fb84 /projects
parent71a2623fbef25fefc1886bc6374832a92188742d (diff)
downloadlibrebootfr-ddf95932704dcf45259ccb6d2e766f1bf1c78f0c.tar.gz
librebootfr-ddf95932704dcf45259ccb6d2e766f1bf1c78f0c.zip
Remove unnecessary code duplication in GRUB build
Diffstat (limited to 'projects')
-rwxr-xr-xprojects/grub/grub21
1 files changed, 9 insertions, 12 deletions
diff --git a/projects/grub/grub b/projects/grub/grub
index 16b63634..42794dda 100755
--- a/projects/grub/grub
+++ b/projects/grub/grub
@@ -79,18 +79,15 @@ build() {
grub_build_layout "${raw_keymap}"
done
- case "${target}" in
- bios)
- grub_build_floppy_image
- grub_build_font
- grub_copy_modules
- ;;
- *)
- grub_build_standalone_image
- grub_build_font
- grub_copy_modules
- ;;
- esac
+ if [[ "${target}" == 'bios' ]]; then
+ grub_build_floppy_image
+ else
+ grub_build_standalone_image
+ fi
+
+ grub_build_font
+
+ grub_copy_modules
# Temporary until the function project_make_distclean is written
(