summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-12-06 01:53:44 +0000
committerLeah Rowe <leah@libreboot.org>2024-12-06 01:53:44 +0000
commit2d96fe2a1d13486d3ea6577beedcf3b2babf6cab (patch)
tree1541c2d2b2d78b98bccf74b3a93470c96307b16d /include
parent2dc7c5fa7203b20c9251f72d99c4e4c7e07c4b72 (diff)
vendor.sh: avoid unnecessary directory copy
the previous commit changed an mv to a cp. what it hacked was actually a relic of the vgarom download patch that i did for t480, before mate got native video init working. this patch is the better fix. i double checked to be sure, and nothing was using the files at the copied location. the _extracted directory under cache gets deleted later on, so it's perfectly acceptable to keep. the other alternative would have been to simply change the path in the sch5545 function to appdir, instead of the cache dir, but who really cares? this patch removes bloat from lbmk. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/vendor.sh6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 3f78c368..8c1ddcd4 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -176,12 +176,8 @@ apply_me11_deguard_mod()
extract_archive()
{
- geteltorito "$1" > "$2/vendor.img" || \
- innoextract "$1" -d "$2" || python "$pfs_extract" "$1" -e || 7z x \
+ innoextract "$1" -d "$2" || python "$pfs_extract" "$1" -e || 7z x \
"$1" -o"$2" || unar "$1" -o "$2" || unzip "$1" -d "$2" || return 1
-
- [ ! -d "${_dl}_extracted" ] || cp -R "${_dl}_extracted" "$2" || \
- $err "!mv '${_dl}_extracted' '$2'"; :
}
extract_kbc1126ec()