inject.sh: simplify remktar()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-27 11:38:22 +01:00
parent 46f7d48c8d
commit 28f03d39cb
2 changed files with 11 additions and 15 deletions
+2 -2
View File
@@ -261,7 +261,7 @@ getvfile()
{
eval "`setcfg "config/vendor/$vcfg/pkg.cfg" 1`"
bootstrap && [ $# -gt 0 ] && getfiles && return 0 # download
fx_ prep x_ find "$tmpromdir" -maxdepth 1 -type f -name "*.rom"
fx_ prep x_ find "$tdir" -maxdepth 1 -type f -name "*.rom"
( check_vendor_hashes ) || err "$archive: Can't verify hashes"; :
}
@@ -395,7 +395,7 @@ vfile()
check_vendor_hashes()
{
x_ cd "$tmpromdir"
x_ cd "$tdir"
[ "$has_hashes" = "n" ] || [ "$nuke" = "nuke" ] || sha512sum \
--status -c "$hashfile" || x_ sha1sum --status -c "$hashfile"
x_ rm -f "$hashfile"