summaryrefslogtreecommitdiff
path: root/src/lib/conf.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/conf.sh')
-rw-r--r--src/lib/conf.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/conf.sh b/src/lib/conf.sh
index f96af26..c2904de 100644
--- a/src/lib/conf.sh
+++ b/src/lib/conf.sh
@@ -61,7 +61,7 @@ list_files() {
}
# Usage: list_envvars $slug
-# Lists the environmental variables that take precidence over the configuration
+# Lists the environmental variables that take precedence over the configuration
# files for $slug.
list_envvars() {
local slug=$1
@@ -133,6 +133,7 @@ check_vars() {
# makepkg configuration ########################################################
# Usage: get_conf_makepkg <var_name> <default_value>
+# Does not work with arrays
get_conf_makepkg() (
set +euE
local setting=$1
@@ -141,6 +142,7 @@ get_conf_makepkg() (
printf '%s\n' "${!setting:-${default}}"
)
+# Does not work with arrays
set_conf_makepkg() {
local key=$1
local val=$2