diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/pro-archman.sh | 4 |
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=${?} |