summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-09 11:07:07 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-09 11:07:07 +0100
commit3478b28821335398a07866276657fcc725104d24 (patch)
tree2397f57544d0fb4122ac3fd1316ecccfc8946716 /include/lib.sh
parentf3f5b99cecefe7d768173988f021490a50a1cac3 (diff)
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>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index f72c785e..cf076388 100755
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -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()