From 392932797b93fea73531af900bc0015a35fec267 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 23 Dec 2023 07:11:12 +0000 Subject: 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 --- script/vendor/inject | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'script') 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 || \ -- cgit v1.2.1