diff options
author | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-14 08:25:50 -0400 |
---|---|---|
committer | Andrew Robbins <contact@andrewrobbins.info> | 2017-09-14 08:28:05 -0400 |
commit | ddf95932704dcf45259ccb6d2e766f1bf1c78f0c (patch) | |
tree | d6c6a47d0617d6db393a295ffd7e47958a96fb84 | |
parent | 71a2623fbef25fefc1886bc6374832a92188742d (diff) | |
download | librebootfr-ddf95932704dcf45259ccb6d2e766f1bf1c78f0c.tar.gz librebootfr-ddf95932704dcf45259ccb6d2e766f1bf1c78f0c.zip |
Remove unnecessary code duplication in GRUB build
-rwxr-xr-x | projects/grub/grub | 21 |
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 ( |