summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-12 17:29:50 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-12 17:29:50 (EDT)
commitbfc4c3c0570ae8ec99a2c01ef85627acacaf11ea (patch)
treef4b4e136718b48cc230dc78a36cc8be2722a5e63
parent52b9cb0ee705b37cc4af3bc6d3490c38f656bb9e (diff)
base_dir: New global variable.
-rw-r--r--src/pro-archman.sh4
1 files changed, 3 insertions, 1 deletions
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=${?}