mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 03:25:25 +02:00
vendor.sh: condense fetch() a bit more
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-3
@@ -77,9 +77,8 @@ getfiles()
|
|||||||
|
|
||||||
fetch()
|
fetch()
|
||||||
{
|
{
|
||||||
dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4"
|
dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4"; _dest="${5##*../}"
|
||||||
[ "$5" = "/dev/null" ] && return 0
|
[ "$5" = "/dev/null" ] && return 0; _dl="$vendir/cache/$dlsum"
|
||||||
_dest="${5##*../}"; _dl="$vendir/cache/$dlsum"
|
|
||||||
|
|
||||||
download "$dl" "$dl_bkup" "$_dl" "$dlsum"
|
download "$dl" "$dl_bkup" "$_dl" "$dlsum"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user