summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-23 07:11:12 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-23 07:11:12 +0000
commit392932797b93fea73531af900bc0015a35fec267 (patch)
treef4a9ad013550085184bf1e6833e665778dc59d3f
parentf44b99c808ed834dceea1109c34a2f587bb46a06 (diff)
vendor/inject: fix dodgy error check (cd command)
the x_ function doesn't handle arguments with spaces well, and this cd command is going to an asterisk, so it's unknown what the resultant string will be. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xscript/vendor/inject3
1 files changed, 2 insertions, 1 deletions
diff --git a/script/vendor/inject b/script/vendor/inject
index 1f1d0209..3f75a9da 100755
--- a/script/vendor/inject
+++ b/script/vendor/inject
@@ -124,7 +124,8 @@ patch_release_roms()
done
(
- x_ cd "${_tmpdir}/bin/"* # TODO: very dodgy, re-write accordingly
+ cd "${_tmpdir}/bin/"* || \
+ err "patch_release_roms: !cd ${_tmpdir}/bin/*"
# NOTE: For compatibility with older rom releases, defer to sha1
[ "${nukemode}" = "nuke" ] || sha512sum --status -c vendorhashes || \