vendor.sh: simplify setvfile()

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-12 14:23:32 +01:00
parent 3879f6c4d8
commit 57f896ac01
+2 -3
View File
@@ -216,9 +216,8 @@ extract_fsp()
setvfile()
{
[ -n "$vcfg" ] && check_vcfg && for c in $cvchk; do
eval "[ \"\${$c}\" = \"/dev/null\" ] && continue"
eval "[ -z \"\${$c}\" ] && continue"
getvfile "$@" && return 0
vcmd="[ \"\${$c}\" != \"/dev/null\" ] && [ -n \"\${$c}\" ]"
eval "$vcmd && getvfile \"\$@\" && return 0"
done && return 1; :
}