summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-12 14:30:27 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-12 14:30:27 +0100
commit97d4d020d97eb8f9fde598c768d1bc19a847bc34 (patch)
tree3aa85c16f811933f783fefa4127f12fddbcbe62e
parent57f896ac016f50db3f3af1ba4be48b4c256deacd (diff)
vendor.sh: simplify getvfile()
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/vendor.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index bca51496..cd3a10d5 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -230,14 +230,8 @@ check_vcfg()
getvfile()
{
- # valid vcfg. proceed to download files
eval "`setcfg "$vfile"`"
-
- bootstrap
-
- [ $# -gt 0 ] && getfiles
- [ $# -gt 0 ] && return 0 # download
-
+ bootstrap && [ $# -gt 0 ] && getfiles && return 0 # download
fx_ prep x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
( check_vendor_hashes ) || err "$archive: Can't verify hashes"; :
}