inject.sh: tidy up check_release()

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-04-12 17:10:49 +01:00
parent f439230604
commit 32242cc03b
1 changed files with 2 additions and 1 deletions

View File

@ -70,7 +70,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"