summaryrefslogtreecommitdiff
path: root/resources/scripts/download
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-15 05:01:48 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-15 05:01:48 +0100
commit52d87f5f086041c94340d460d74d77a2253e9d7f (patch)
treebb7cd21d1cb20dd013ad05e794142cfc5f2eb42d /resources/scripts/download
parent7bd206b9e735c0b8bd799f70ac9eccb14b2783e6 (diff)
download/coreboot: minor code cleanup
i'm pretty much finished now there might be a few more changes later, like stricter error handling, more verbose error messages, etc right now, it relies on -e to kill lbmk on error, and uses the exit command another planned change it to support other upstreams besides coreboot.org, such as the dasharo codebase the latter is *why* i refactored this download script, for asus kgped-d16
Diffstat (limited to 'resources/scripts/download')
-rwxr-xr-xresources/scripts/download/coreboot7
1 files changed, 2 insertions, 5 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index 2523d7d9..512616dd 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -38,12 +38,9 @@ main()
elif [ $# -eq 1 ] && [ "$1" = "--list-boards" ] ; then
list_supported_boards
exit 0
+ else
+ fetch_coreboot_trees $@
fi
-
- fetch_coreboot_trees $@
-
- printf "\n\n"
- exit 0
}
fetch_coreboot_trees()