summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rwxr-xr-xshare/keyringer/decrypt1
-rwxr-xr-xshare/keyringer/git6
-rwxr-xr-xshare/keyringer/ls6
-rwxr-xr-xshare/keyringer/newkeys3
4 files changed, 3 insertions, 13 deletions
diff --git a/share/keyringer/decrypt b/share/keyringer/decrypt
index 71367f5..1fe0ee3 100755
--- a/share/keyringer/decrypt
+++ b/share/keyringer/decrypt
@@ -11,4 +11,5 @@ keyringer_set_env $*
# Get file
keyringer_get_file $2
+# Decrypt
gpg --quiet --use-agent -d $KEYDIR/$FILE
diff --git a/share/keyringer/git b/share/keyringer/git
index 76437ac..b453a8f 100755
--- a/share/keyringer/git
+++ b/share/keyringer/git
@@ -11,11 +11,7 @@ keyringer_set_env $*
# Aditional parameters
CWD="`pwd`"
-if [ -z "$BASEDIR" ]; then
- echo "Usage: keyringer <keyringer> `basename $0` [arguments]"
- exit 1
-fi
-
+# Run git command
shift
mkdir -p $BASEDIR && cd $BASEDIR && git $*
cd $CWD
diff --git a/share/keyringer/ls b/share/keyringer/ls
index 2a198e8..81e3177 100755
--- a/share/keyringer/ls
+++ b/share/keyringer/ls
@@ -11,11 +11,7 @@ keyringer_set_env $*
# Aditional parameters
CWD="`pwd`"
-if [ -z "$KEYDIR" ]; then
- echo "Usage: keyringer <keyring> `basename $0` [arguments]"
- exit 1
-fi
-
+# Run list command
shift
cd $KEYDIR && ls $*
cd $CWD
diff --git a/share/keyringer/newkeys b/share/keyringer/newkeys
index 531cf42..c7eb562 100755
--- a/share/keyringer/newkeys
+++ b/share/keyringer/newkeys
@@ -49,9 +49,6 @@ source $LIB/functions
if [ -z "$COMMAND" ]; then
echo "Usage: keyringer <keyring> `basename $0` <command> [arguments]"
exit 1
-elif [ ! -f "$OPTIONS" ]; then
- echo "No option config was found"
- exit 1
fi
source $OPTIONS