mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
vendor.sh: additional safety check
the exit from mkdst can also be non-zero if mv or cp failed, but there's no way to handle that reliably. therefore, the checksum verification should be done one final time, to compensate. Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ fetch()
|
||||
# the given hashsum. So, search for a matching file via bruteforce:
|
||||
( fx_ "eval mkdst \"$binsum\"" x_ find "${_pre_dest%/*}" -type f ) || :
|
||||
|
||||
[ -f "$_dest" ] && return 0
|
||||
bad_checksum "$binsum" "$_dest" || [ ! -f "$_dest" ] || return 0
|
||||
[ -z "$binsum" ] && \
|
||||
printf "'%s', '%s': checksum undefined. Check files in '%s'\n" \
|
||||
"$board" "$_dest" "${_pre_dest%/*}" 1>&2
|
||||
|
||||
Reference in New Issue
Block a user