vendor fetch(): condense variable initialisation

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-06-28 13:50:35 +01:00
parent 708e306e5f
commit d12a686015
+1 -4
View File
@@ -90,10 +90,7 @@ getfiles()
fetch()
{
dl_type="$1"
dl="$2"
dl_bkup="$3"
dlsum="$4"
dl_type="$1"; dl="$2"; dl_bkup="$3"; dlsum="$4"
[ "$5" = "/dev/null" ] && return 0
[ "${5# }" = "$5" ] || $err "fetch: space not allowed in _dest: '$5'"
[ "${5#/}" = "$5" ] || $err "fetch: absolute path not allowed: '$5'"