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