summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2010-01-08 13:16:53 -0200
committerSilvio Rhatto <rhatto@riseup.net>2010-01-08 13:16:53 -0200
commit0c3232531d678dc815a3e4a750df1ef80a6b5e22 (patch)
tree709f8498b8db532d3b97d75db5dddd29cebc6703 /share
parent274bf3dea66938c7704f756c201fb0c65e672610 (diff)
downloadkeyringer-0c3232531d678dc815a3e4a750df1ef80a6b5e22.tar.gz
keyringer-0c3232531d678dc815a3e4a750df1ef80a6b5e22.tar.bz2
Adding --use-agent
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/decrypt2
-rwxr-xr-xshare/keyringer/encrypt2
-rwxr-xr-xshare/keyringer/recrypt2
3 files changed, 3 insertions, 3 deletions
diff --git a/share/keyringer/decrypt b/share/keyringer/decrypt
index 95ea332..ac4e25d 100755
--- a/share/keyringer/decrypt
+++ b/share/keyringer/decrypt
@@ -20,4 +20,4 @@ elif [ ! -f "$KEYDIR/$FILE" ]; then
exit 1
fi
-gpg -d $KEYDIR/$FILE
+gpg --use-agent -d $KEYDIR/$FILE
diff --git a/share/keyringer/encrypt b/share/keyringer/encrypt
index ba3d2d0..396ad4d 100755
--- a/share/keyringer/encrypt
+++ b/share/keyringer/encrypt
@@ -27,7 +27,7 @@ fi
# Encrypt
mkdir -p $KEYDIR/`dirname $FILE`
echo "Type your message and finish your input with EOF (Ctrl-D)."
-gpg --armor -e -s $(keyringer_recipients $RECIPIENTS) - > $KEYDIR/$FILE
+gpg --use-agent --armor -e -s $(keyringer_recipients $RECIPIENTS) - > $KEYDIR/$FILE
# Stage
if [ -d "$BASEDIR/.git" ]; then
diff --git a/share/keyringer/recrypt b/share/keyringer/recrypt
index 1b35224..cfe3534 100755
--- a/share/keyringer/recrypt
+++ b/share/keyringer/recrypt
@@ -25,4 +25,4 @@ elif [ ! -f "$KEYDIR/$FILE" ]; then
exit 1
fi
-gpg -d $KEYDIR/$FILE | gpg --armor -e -s $(keyringer_recipients $RECIPIENTS) > $KEYDIR/$FILE
+gpg --use-agent -d $KEYDIR/$FILE | gpg --use-agent --armor -e -s $(keyringer_recipients $RECIPIENTS) > $KEYDIR/$FILE