From a8f272536d33af6932cb25c66177e851cae03553 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 28 Jun 2024 22:32:03 +0100 Subject: lib.sh: stricter check in chkvars() testing +x is all well and good, but the variable string may be empty, even if set. some of the checks in the build system are relying on the latter, so handle it. Signed-off-by: Leah Rowe --- include/lib.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/lib.sh b/include/lib.sh index 58aa8d46..e6a998d2 100755 --- a/include/lib.sh +++ b/include/lib.sh @@ -33,6 +33,7 @@ chkvars() { for var in $@; do eval "[ -n "\${$var+x}" ] || \$err \"$var unset\"" + eval "[ -n "\$$var" ] || \$err \"$var unset\"" done; return 0 } -- cgit v1.2.1