blob: 36eefcc1fa73e9def5e7bd13a7ed921b2edb6e74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/bash
#
# Recipient management.
#
# Load functions
LIB="`dirname $0`/../../lib/keyringer"
source $LIB/functions
keyringer_set_env $*
# Command parser
keyringer_get_command $2
if [ "$COMMAND" == "ls" ]; then
cat $RECIPIENTS
elif [ "$COMMAND" == "edit" ]; then
$EDITOR $RECIPIENTS
else
echo "$BASENAME: No such command $COMMAND"
exit 1
fi
|