vendor.sh: condense fetch() a bit more

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-29 02:21:00 +01:00
parent 675d2c0376
commit cbac2087cc
1 changed files with 2 additions and 3 deletions

View File

@ -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"