From 7f8d85140fd229e97e539ca463fbd94545997fd6 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 4 Oct 2025 05:23:47 +0100 Subject: 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 --- include/vendor.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include/vendor.sh') 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 -- cgit v1.2.1