From 0e1e9c1773734c38426529ba8cda2f5b9e5b8f9b Mon Sep 17 00:00:00 2001
From: Leah Rowe <leah@libreboot.org>
Date: Mon, 15 May 2023 04:11:10 +0100
Subject: download/coreboot: fix downloads without argument

this should download all trees:

	./download coreboot

without this patch, it doesn't

with this patch, it works

i overlooked this during earlier
refactoring. auditing revealed it.
---
 resources/scripts/download/coreboot | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'resources/scripts/download')

diff --git a/resources/scripts/download/coreboot b/resources/scripts/download/coreboot
index fa36fd75..f120270c 100755
--- a/resources/scripts/download/coreboot
+++ b/resources/scripts/download/coreboot
@@ -60,7 +60,7 @@ fetch_coreboot_trees()
 	else
 		for board in resources/coreboot/*; do
 			[ ! -d "${board}" ] && continue
-			boards="${boards} ${board}"
+			boards="${boards} ${board##*/}"
 		done
 	fi
 	for board in ${boards}; do
-- 
cgit v1.2.1