summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-12 17:10:49 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-12 17:10:49 +0100
commitcb36248c8c06d76274b2f2bb315bbbde50b9ce70 (patch)
treec92637eb902fcf244b2e70cfa8f9a2249c3cd0be /include
parent409cab39c56a9769021551103890795e8443a5a7 (diff)
vendor.sh: tidy up check_release()
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/vendor.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index e6485cb4..d98bde7e 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -416,7 +416,8 @@ check_release()
{
[ -L "$archive" ] && \
$err "'$archive' is a symlink, not a file - $dontflash"
- [ -f "$archive" ] || return 1
+ e "$archive" f missing && return 1
+
archivename="`basename "$archive"`"
[ -z "$archivename" ] && \
$err "Cannot determine archive file name - $dontflash"