From cbac2087cc5f167d8f290ea107dbfc488930cd06 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 29 Jun 2024 02:21:00 +0100 Subject: vendor.sh: condense fetch() a bit more Signed-off-by: Leah Rowe --- include/vendor.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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" -- cgit v1.2.1