summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-04 05:23:47 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-04 05:23:47 +0100
commit7f8d85140fd229e97e539ca463fbd94545997fd6 (patch)
tree88528dba20c0c08fcb2aa0e84fc4d9be28d6febf /include/vendor.sh
parent0a74cc8ec6038492f64074e18cc10ba7ab31ac94 (diff)
xbmk: remove the setcfg function
this allows me to remove several eval calls, and the errors relating to configs can now show exactly which function they occured in, allowing for easier debugging. once again, eval should be used sparingly if at all. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rw-r--r--include/vendor.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/vendor.sh b/include/vendor.sh
index 2b108f7b..3ed16d8e 100644
--- a/include/vendor.sh
+++ b/include/vendor.sh
@@ -417,7 +417,12 @@ setvfile()
getvfile()
{
- eval "`setcfg "config/vendor/$vcfg/pkg.cfg" 1`"
+ if e "config/vendor/$vcfg/pkg.cfg" f missing; then
+ return 1
+ fi
+
+ . "config/vendor/$vcfg/pkg.cfg" || \
+ err "Can't read 'config/vendor/$vcfg/pkg.cfg'" "getvfile" "$@"
bootstrap