summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-04-30 14:26:20 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-04-30 14:26:20 (EDT)
commit04d6cf63cd81384ec6435e98886385e236c7f637 (patch)
treef1f919c46d0498c1ceec33ba8233183a6cc9c906 /src
parentc83659c0a9a7dcdf07f704746714797e35298145 (diff)
get_conf(): Add "conf_verbose" variable.
Diffstat (limited to 'src')
-rw-r--r--src/pro-archman.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index b4524d2..49d6b55 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -37,6 +37,7 @@ base_dir=
conf_incoming_channel=
conf_incoming_dir=
conf_pool_gc_delay=
+conf_verbose=
lock=
# use() must be defined inline so it can be used to load other modules.
@@ -151,6 +152,7 @@ get_conf()
conf_incoming_channel='dev'
conf_incoming_dir='../incoming'
conf_pool_gc_delay=86400
+ conf_verbose=false
if [ -f "${base_dir}/conf" ]; then
. "${base_dir}/conf"
@@ -163,6 +165,11 @@ get_conf()
fi
cd "${old_dir}"
+ case "${conf_verbose}" in
+ 'false' | '0' | 'off' | 'no') conf_verbose=false;;
+ *) conf_verbose=true;;
+ esac
+
return 0
}