summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-23 07:48:15 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-23 07:48:15 +0000
commit465077bc4aa0cb0b5806494d67d635a0f7619899 (patch)
treeceee138978f23b48205c105b315e90c10b25c8ca
parent392932797b93fea73531af900bc0015a35fec267 (diff)
vendor/download: check whether configs exist first
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/vendor/download6
1 files changed, 6 insertions, 0 deletions
diff --git a/script/vendor/download b/script/vendor/download
index b83ffb48..25434318 100755
--- a/script/vendor/download
+++ b/script/vendor/download
@@ -42,6 +42,12 @@ main()
detect_firmware()
{
+ _cfg_exists="n"
+ for _chk_file in "${boarddir}/config/"*; do
+ [ -f "${_chk_file}" ] && _cfg_exists="y" && break
+ done
+ [ "${_cfg_exists}" = "n" ] && return 1
+
set -- "${boarddir}/config/"*
. "${1}" 2>/dev/null