summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-28 13:50:35 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-28 13:50:35 +0100
commitd12a686015e86c04b83d547437b8d455128fbcfb (patch)
tree19c1adac41463e3a7aaec550db39218e8dec2af0 /include/vendor.sh
parent708e306e5f2828fe3a9eee4ddded21f00ad0e9cc (diff)
vendor fetch(): condense variable initialisation
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rwxr-xr-xinclude/vendor.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 3ed2eb71..e3826390 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -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'"