From 49aeecc97678e64c8c05f8f4dd7a3c55173386e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Mon, 3 Apr 2017 11:32:06 +0200 Subject: Add interface for GPG recipients too --- backuper.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'backuper.sh') diff --git a/backuper.sh b/backuper.sh index 6b297ee..ce66ba0 100644 --- a/backuper.sh +++ b/backuper.sh @@ -88,6 +88,13 @@ compute_gpg_recipients() { done } +add_gpg_recipient() { + PARAM="$1" + if ! echo "$GPG_RECIPIENTS" | grep -q -- "$PARAM" ; then + GPG_RECIPIENTS="$GPG_RECIPIENTS $PARAM" + fi +} + ## Program control error() { if [ -n "$1" ]; then -- cgit v1.2.3