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>
9020vga
Leah Rowe 2023-12-23 07:11:12 +00:00
parent f44b99c808
commit 392932797b
1 changed files with 2 additions and 1 deletions

View File

@ -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 || \