mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 14:02:52 +02:00
vendor.sh: simplify setvfile()
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-3
@@ -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; :
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user