variable cask_to_not_update is now in kymsu.cfg file
This commit is contained in:
2026-08-02 18:55:23 +02:00
parent 1682d0bd18
commit 909a1fb52d
5 changed files with 61 additions and 6 deletions
+11
View File
@@ -0,0 +1,11 @@
config_read_file() {
(grep -E "^${2}=" -m 1 "${1}" 2>/dev/null || echo "VAR=__UNDEFINED__") | head -n 1 | cut -d '=' -f 2-;
}
config_get() {
val="$(config_read_file kymsu.cfg "${1}")";
if [ "${val}" = "__UNDEFINED__" ]; then
val="$(config_read_file config.cfg.defaults "${1}")";
fi
printf -- "%s" "${val}";
}