Merge pull request #1244 from tlaurion/talos_flash-sh_fix_on_bad_archive

This commit is contained in:
tlaurion 2022-11-15 11:12:47 -05:00 committed by GitHub
commit 2d2809a9c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -167,7 +167,7 @@ if [ "$READ" -eq 0 ] && [ "${ROM##*.}" = tgz ]; then
rm -rf /tmp/verified_rom rm -rf /tmp/verified_rom
mkdir /tmp/verified_rom mkdir /tmp/verified_rom
tar -C /tmp/verified_rom -xf $ROM tar -C /tmp/verified_rom -xf $ROM || die "Rom archive $ROM could not be extracted"
if ! (cd /tmp/verified_rom/ && sha256sum -cs hashes.txt); then if ! (cd /tmp/verified_rom/ && sha256sum -cs hashes.txt); then
die "Provided tgz image did not pass hash verification" die "Provided tgz image did not pass hash verification"
fi fi