fix regression in version check

it occured to me that this style of check was bad. it
only works when checking if both variables are set

my bad

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-13 14:55:38 +01:00
parent 1a9b211368
commit 0363bcaa0f
+2 -1
View File
@@ -26,8 +26,9 @@ update_xbmkver()
{
xbmk_sanitize_version
[ -z "${version-}${versiondate-}" ] && \
if [ -z "${version-}" ] || [ -z "${versiondate-}" ]; then
err "version and/or versiondate unset" "update_xbmkver" "$@"
fi
printf "%s\n" "$version" > "$1/.version" || \
err "can't write '$1'" "update_xbmkver" "$@"; :