From 22b003b01a7ed817464b2fc0b776f2c3fb0cb65c Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 12 Oct 2013 17:02:43 -0400 Subject: init(): New function. --- (limited to 'src') 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" -- cgit v0.9.1