summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-12 17:51:36 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-12 17:51:36 (EDT)
commita17e495edee3a45131ec40eebd70ba3ff4d4a533 (patch)
treefd9d8b8adf79d8d18470740ef58f18ac8ecf4a13
parentefc27ba6b79a8d5a5ebf0fea8579740cc4f3cdd7 (diff)
pro-archman: Replace more ${opt_base_dir}.
-rw-r--r--src/pro-archman.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index 05b076f..62d9461 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -134,8 +134,8 @@ init()
lock()
{
- mkdir -p "${opt_base_dir}/.db"
- lock="${opt_base_dir}/.db/lock"
+ mkdir -p "${base_dir}/.db"
+ lock="${base_dir}/.db/lock"
if ! (set -C; printf '%d\n' "${$}" >"${lock}") 2>/dev/null; then
error 2 "$(get_msg 'lock_fail')"
fi
@@ -150,12 +150,12 @@ get_conf()
conf_incoming_dir='../incoming'
conf_pool_gc_delay=86400
- if [ -f "${opt_base_dir}/conf" ]; then
- . "${opt_base_dir}/conf"
+ if [ -f "${base_dir}/conf" ]; then
+ . "${base_dir}/conf"
fi
old_dir="$(pwd)"
- cd "${opt_base_dir}"
+ cd "${base_dir}"
if [ -d "${conf_incoming_dir}" ]; then
conf_incoming_dir="$(cd "${conf_incoming_dir}" && pwd)"
fi