lib.sh: simplify chkvars()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-26 13:45:12 +01:00
parent 5036a0bc50
commit 79ded40f3d
+2 -4
View File
@@ -71,11 +71,9 @@ setcfg()
chkvars()
{
while true; do
[ $# -lt 1 ] && break
while [ $# -gt 0 ]; do
eval "[ -n \"\${$1+x}\" ] || err \"$1 unset\""
eval "[ -n \"\$$1\" ] || err \"$1 unset\""
shift 1
eval "[ -n \"\$$1\" ] || err \"$1 unset\"; shift 1; :"
done; :
}