diff options
author | P. J. McDermott <pjm@nac.net> | 2013-10-12 17:02:43 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2013-10-12 17:02:43 (EDT) |
commit | 22b003b01a7ed817464b2fc0b776f2c3fb0cb65c (patch) | |
tree | 069643059a90cd91443779dff6c6f105570d0d0e | |
parent | aaa1103c66bd4a591ae765010deacb9d754fe782 (diff) |
init(): New function.
-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" |