summaryrefslogtreecommitdiff
path: root/resources/scripts
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-05-15 00:40:54 +0100
committerLeah Rowe <leah@libreboot.org>2023-05-15 00:40:54 +0100
commit31d8fcd3fdc57af09072cf1fca71b7c7fc2ef49e (patch)
tree6b356b82e90b8efa1fbe7d1915181fa650da6a3b /resources/scripts
parent4c2cff5e7c13ac14b76552dcc46feb4d3608a0ed (diff)
download/coreboot: split main()
Diffstat (limited to 'resources/scripts')
-rwxr-xr-xresources/scripts/download/coreboot14
1 files changed, 9 insertions, 5 deletions
diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index 2690afe0..d7f7a82a 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -39,9 +39,17 @@ main()
list_supported_boards
exit 0
fi
-
[ -f build_error ] && rm -f build_error
+ fetch_coreboot_trees
+
+ rm -f "build_error"
+ printf "\n\n"
+ exit 0
+}
+
+fetch_coreboot_trees()
+{
rm -f resources/coreboot/*/seen
printf "Downloading coreboot and (if available) applying patches\n"
@@ -62,10 +70,6 @@ main()
done
rm -f resources/coreboot/*/seen
-
- rm -f "build_error"
- printf "\n\n"
- exit 0
}
downloadfor() {