aboutsummaryrefslogtreecommitdiff
path: root/projects/grub
diff options
context:
space:
mode:
authorAndrew Robbins <contact@andrewrobbins.info>2019-11-02 20:51:24 -0500
committerAndrew Robbins <contact@andrewrobbins.info>2019-11-02 22:07:31 -0500
commit7c58ae4cdf4c31188a581ca7685bda889132dda9 (patch)
treef82621cca0c84a10491c84b1ee8e24f267d40250 /projects/grub
parent0c736cf027a90c0540834c53b957b8c577591c91 (diff)
downloadlibrebootfr-7c58ae4cdf4c31188a581ca7685bda889132dda9.tar.gz
librebootfr-7c58ae4cdf4c31188a581ca7685bda889132dda9.zip
Remove redundant subshells in project actions
Since an action is performed within a subshell there is no need for a second subshell to handle errors.
Diffstat (limited to 'projects/grub')
-rwxr-xr-xprojects/grub/grub30
1 files changed, 13 insertions, 17 deletions
diff --git a/projects/grub/grub b/projects/grub/grub
index 75d29380..ada5c338 100755
--- a/projects/grub/grub
+++ b/projects/grub/grub
@@ -75,28 +75,24 @@ build() {
local build_path="$(project_build_path "$project" "$@")"
local raw_keymap_path="$project_path/$CONFIGS/keymaps"
- (
- set -e
+ mkdir -p "$build_path"
- mkdir -p "$build_path"
+ grub_build_utils
- grub_build_utils
-
- if [[ "$target" == 'bios' ]]; then
- grub_build_floppy_image
- else
- grub_build_standalone_image
- fi
+ if [[ "$target" == 'bios' ]]; then
+ grub_build_floppy_image
+ else
+ grub_build_standalone_image
+ fi
- for raw_keymap in "$raw_keymap_path"/*; do
- grub_build_layout "$raw_keymap"
- done
+ for raw_keymap in "$raw_keymap_path"/*; do
+ grub_build_layout "$raw_keymap"
+ done
- grub_build_font
- grub_copy_modules
+ grub_build_font
+ grub_copy_modules
- make -C "$sources_path" distclean
- )
+ make -C "$sources_path" distclean
}
build_check() {