summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-29 02:14:00 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-29 02:14:00 +0100
commit675d2c0376755d9258a4a3a7db01b5c91fd600de (patch)
tree7b1c9329fdf9e57283d4ae05bff14037a1896760
parent5e46b9f434d12622038f351545cfd2b9eaad168d (diff)
vendor.sh: remove unnecessary check
this is over-engineering, because we do not allow just about any path to be provided; it's not provided as an argument in a command, for example. this is dictated by a configuration file, which we control. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xinclude/vendor.sh2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index c60a3d77..c4241efa 100755
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -79,8 +79,6 @@ fetch()
{
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'"
_dest="${5##*../}"; _dl="$vendir/cache/$dlsum"
download "$dl" "$dl_bkup" "$_dl" "$dlsum"