Blame SOURCES/lvm2-2_03_06-tests-Fix-unbound-variable.patch

26e710
 test/lib/aux.sh | 6 +++---
26e710
 1 file changed, 3 insertions(+), 3 deletions(-)
26e710
26e710
diff --git a/test/lib/aux.sh b/test/lib/aux.sh
26e710
index 0cc26a4..e3f624c 100644
26e710
--- a/test/lib/aux.sh
26e710
+++ b/test/lib/aux.sh
26e710
@@ -1387,17 +1387,17 @@ version_at_least() {
26e710
 	IFS=".-" read -r major minor revision <<< "$1"
26e710
 	shift
26e710
 
26e710
-	test -z "${1:-}" && return 0
26e710
+	test -n "${1:-}" || return 0
26e710
 	test -n "$major" || return 1
26e710
 	test "$major" -gt "$1" && return 0
26e710
 	test "$major" -eq "$1" || return 1
26e710
 
26e710
-	test -n "$2" || return 0
26e710
+	test -n "${2:-}" || return 0
26e710
 	test -n "$minor" || return 1
26e710
 	test "$minor" -gt "$2" && return 0
26e710
 	test "$minor" -eq "$2" || return 1
26e710
 
26e710
-	test -n "$3" || return 0
26e710
+	test -n "${3:-}" || return 0
26e710
 	test "$revision" -ge "$3" 2>/dev/null || return 1
26e710
 }
26e710
 #