blob: aaf23e96753c62b217423a3db8ac0b84942b0cd0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
#! /bin/sh
# This source code is released into the public domain.
# Parse command-line arguments.
args=$(getopt c:v $*)
if [ $? -ne 0 ]; then
exit 1
fi
set -- $args
_uacme_flags=""
while :; do
case "$1" in
-c)
_CONFDIR="$2"
shift; shift;;
-v)
LFACME_VERBOSE=1
shift;;
-y)
_uacme_flags="$_uacme_flags $1"
shift;;
--)
shift; break;;
esac
done
# Initialise.
. __LIBDIR__/init.sh
# Run the command.
_command="$1"; shift
if [ -z "$_command" ]; then
_fatal "missing command"
fi
_cscript="__LIBDIR__/command/${_command}.sh"
if ! [ -x "$_cscript" ]; then
_fatal "unknown command: %s" "$_command"
fi
. "$_cscript"
|