mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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:
+2
-6
@@ -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; :
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user