From 0363bcaa0f5251cdf976f836f1fd5229e12bc435 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 13 Sep 2026 14:55:38 +0100 Subject: [PATCH] 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 --- include/lib.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/lib.sh b/include/lib.sh index 96e4e2f1..84e23586 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -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" "$@"; :