diff options
author | Leah Rowe <leah@libreboot.org> | 2025-10-04 05:23:47 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-10-04 05:23:47 +0100 |
commit | 7f8d85140fd229e97e539ca463fbd94545997fd6 (patch) | |
tree | 88528dba20c0c08fcb2aa0e84fc4d9be28d6febf /include/lib.sh | |
parent | 0a74cc8ec6038492f64074e18cc10ba7ab31ac94 (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/lib.sh')
-rw-r--r-- | include/lib.sh | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/lib.sh b/include/lib.sh index 11f66107..833f284d 100644 --- a/include/lib.sh +++ b/include/lib.sh @@ -107,16 +107,6 @@ setvars() fi } -setcfg() -{ - if [ $# -gt 1 ]; then - printf "e \"%s\" f missing && return %s;\n" "$1" "$2" - else - printf "e \"%s\" f not && err \"Missing config '$1'\";\n" "$1" - fi - printf ". \"%s\" || err \"Could not read config '$1'\";\n" "$1" -} - chkvars() { while [ $# -gt 0 ]; do |