summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/pro-archman.sh36
1 files changed, 20 insertions, 16 deletions
diff --git a/src/pro-archman.sh b/src/pro-archman.sh
index cc23a22..0725ffd 100644
--- a/src/pro-archman.sh
+++ b/src/pro-archman.sh
@@ -89,6 +89,7 @@ main()
local cmd=
local status=
+ init_sigs
load_locale
load_cmds
@@ -115,22 +116,7 @@ main()
return ${status}
}
-get_options()
-{
- local opt=
-
- unset OPTARG
- while getopts "${OPTSTRING}" opt; do
- if [ "x${opt}" != 'x?' ]; then
- eval "opt_${opt}=\"\${OPTARG:-true}\""
- fi
- unset OPTARG
- done
-
- return 0
-}
-
-init()
+init_sigs()
{
local i=
local sig=
@@ -148,7 +134,25 @@ init()
;;
esac
done
+}
+
+get_options()
+{
+ local opt=
+
+ unset OPTARG
+ while getopts "${OPTSTRING}" opt; do
+ if [ "x${opt}" != 'x?' ]; then
+ eval "opt_${opt}=\"\${OPTARG:-true}\""
+ fi
+ unset OPTARG
+ done
+
+ return 0
+}
+init()
+{
lock
get_conf
}