vendor.sh: fix setvfile

this reverts change made to this function in:

commit 4f01dc704a
Author: Leah Rowe <leah@libreboot.org>
Date:   Sat Oct 4 06:13:15 2025 +0100

    xbmk: remove even more eval statements

for some reason, the new code caused sch5545 ec firmware
to never download.

the old code wasn't horribly broken, so just use that.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-10-04 16:14:36 +01:00
parent 8334c93dac
commit 2956fcc051
+2 -6
View File
@@ -491,12 +491,8 @@ extract_fsp()
setvfile()
{
[ -n "$vcfg" ] && for c in $checkvarschk; do
vcmd="[ \"\${$c}\" = \"/dev/null\" ] || [ -z \"\${$c}\" ]"
eval "$vcmd || return 0"
if getvfile "$@"; then
return 0
fi
vcmd="[ \"\${$c}\" != \"/dev/null\" ] && [ -n \"\${$c}\" ]"
eval "$vcmd && getvfile \"\$@\" && return 0"
done && return 1; :
}