summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-29 02:21:00 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-29 02:21:00 +0100
commitcbac2087cc5f167d8f290ea107dbfc488930cd06 (patch)
tree1f8b89e36d12fdfc0409e975dca3ea71d95d7a63 /include/vendor.sh
parent675d2c0376755d9258a4a3a7db01b5c91fd600de (diff)
vendor.sh: condense fetch() a bit more
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index c4241efa..9aebcb64 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -77,9 +77,8 @@ getfiles()
fetch()
{
- dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4"
- [ "$5" = "/dev/null" ] && return 0
- _dest="${5##*../}"; _dl="$vendir/cache/$dlsum"
+ dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4"; _dest="${5##*../}"
+ [ "$5" = "/dev/null" ] && return 0; _dl="$vendir/cache/$dlsum"
download "$dl" "$dl_bkup" "$_dl" "$dlsum"