diff options
-rw-r--r-- | src/pro-archman.sh | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh index b1accae..b2894ae 100644 --- a/src/pro-archman.sh +++ b/src/pro-archman.sh @@ -104,8 +104,7 @@ main() run_cmd "${opt_cmd}" "${@}" status=${?} else - lock - get_conf + init run_cmd "${@}" status=${?} fini @@ -135,6 +134,12 @@ get_options() return 0 } +init() +{ + lock + get_conf +} + lock() { mkdir -p "${opt_base_dir}/.db" |