mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-13 14:59:34 +02:00
blobs/download: don't pass dl_path as argument
Because fetch() is only called now from blobs/download, we can reliably know what dl_path should be. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+4
-4
@@ -60,10 +60,10 @@ fetch()
|
||||
dl="${2}"
|
||||
dl_bkup="${3}"
|
||||
dlsum="${4}"
|
||||
dl_path="${5}"
|
||||
[ "${6# }" = "${6}" ] || err "fetch: space not allowed in _dest: '${6}'"
|
||||
[ "${6#/}" = "${6}" ] || err "fetch: absolute path not allowed: '${6}'"
|
||||
_dest="${6##*../}"
|
||||
[ "${5# }" = "${5}" ] || err "fetch: space not allowed in _dest: '${5}'"
|
||||
[ "${5#/}" = "${5}" ] || err "fetch: absolute path not allowed: '${5}'"
|
||||
_dest="${5##*../}"
|
||||
dl_path="${blobdir}/cache/${dlsum}"
|
||||
|
||||
mkdir -p "${dl_path%/*}" || err "fetch: !mkdir ${dl_path%/*}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user