summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-28 22:32:03 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-28 22:32:03 +0100
commita8f272536d33af6932cb25c66177e851cae03553 (patch)
treecbb73041e89166a609672c9eebb4ba1aa150a3b0 /include/lib.sh
parentfa5af956c4383e48834276dfd4577f53d3d3f6d1 (diff)
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 <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-rwxr-xr-xinclude/lib.sh1
1 files changed, 1 insertions, 0 deletions
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
}