From bfc4c3c0570ae8ec99a2c01ef85627acacaf11ea Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Oct 2013 17:29:50 -0400 Subject: base_dir: New global variable. --- diff --git a/src/pro-archman.sh b/src/pro-archman.sh index 11ec0d8..a174187 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -35,6 +35,7 @@ OPTSTRING='hVb:' loading_cmd= opt_base_dir= opt_cmd= +base_dir= conf_incoming_channel= conf_incoming_dir= conf_pool_gc_delay= @@ -90,7 +91,6 @@ main() load_locale load_cmds - opt_base_dir='.' opt_cmd='' get_options "${@}" @@ -100,6 +100,8 @@ main() exit 1 fi + base_dir="${opt_base_dir:-.}" + if [ "x${opt_cmd}" != 'x' ]; then run_cmd "${opt_cmd}" "${@}" status=${?} -- cgit v0.9.1