lib.sh: less confusing error in download()

don't say "file missing", because it may be present!

instead, say that the download failed. this covers both
contexts: internet failed and thus no file present, or
the file is present but checksum verification failed.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-06-09 11:07:07 +01:00 committed by Leah Rowe
parent 2eaaa63f58
commit ab4c4d406f
1 changed files with 1 additions and 1 deletions

View File

@ -240,7 +240,7 @@ download()
wget --tries 3 -U "$_ua" "$url" -O "$3" || continue
vendor_checksum "$4" "$3" || dl_fail="n"
done;
[ "$dl_fail" = "y" ] && $err "$1 $2 $3 $4: file missing"; return 0
[ "$dl_fail" = "y" ] && $err "$1 $2 $3 $4: not downloaded"; return 0
}
vendor_checksum()