mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-09-19 21:20:31 +02:00
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:
+2
-1
@@ -26,8 +26,9 @@ update_xbmkver()
|
|||||||
{
|
{
|
||||||
xbmk_sanitize_version
|
xbmk_sanitize_version
|
||||||
|
|
||||||
[ -z "${version-}${versiondate-}" ] && \
|
if [ -z "${version-}" ] || [ -z "${versiondate-}" ]; then
|
||||||
err "version and/or versiondate unset" "update_xbmkver" "$@"
|
err "version and/or versiondate unset" "update_xbmkver" "$@"
|
||||||
|
fi
|
||||||
|
|
||||||
printf "%s\n" "$version" > "$1/.version" || \
|
printf "%s\n" "$version" > "$1/.version" || \
|
||||||
err "can't write '$1'" "update_xbmkver" "$@"; :
|
err "can't write '$1'" "update_xbmkver" "$@"; :
|
||||||
|
|||||||
Reference in New Issue
Block a user