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>
This commit is contained in:
Leah Rowe
2025-10-04 05:23:47 +01:00
parent 0a74cc8ec6
commit 7f8d85140f
7 changed files with 37 additions and 19 deletions
+2 -1
View File
@@ -56,7 +56,8 @@ xbmkpkg()
reinstall="$3"
fi
eval "`setcfg "config/dependencies/$2"`"
. "config/dependencies/$2" || \
err "Can't read 'config/dependencies/$2'" "xbmkpkg" "$@"
chkvars pkg_add pkglist
x_ $pkg_add $pkglist