diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-13 14:55:38 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-13 14:55:38 +0100 |
| commit | 0363bcaa0f5251cdf976f836f1fd5229e12bc435 (patch) | |
| tree | a9915835be00d26f02261556fcaddf81024053fa | |
| parent | 1a9b211368930ecee259cf0fbd25686c4ebc8924 (diff) | |
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>
| -rw-r--r-- | include/lib.sh | 3 |
1 files changed, 2 insertions, 1 deletions
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" "$@"; : |
