From 04d6cf63cd81384ec6435e98886385e236c7f637 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 30 Apr 2014 14:26:20 -0400 Subject: get_conf(): Add "conf_verbose" variable. --- 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 } -- cgit v0.9.1