summaryrefslogtreecommitdiff
path: root/scripts/decrypt
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2009-10-08 16:47:03 -0300
committerSilvio Rhatto <rhatto@riseup.net>2009-10-08 16:47:03 -0300
commit62fa5fa2d2cf29d3761e060b49ee1490739c7b91 (patch)
tree1d3fb585b19765b7de94bb37ccd8ba39b069b1f8 /scripts/decrypt
downloadkeyringer-62fa5fa2d2cf29d3761e060b49ee1490739c7b91.tar.gz
keyringer-62fa5fa2d2cf29d3761e060b49ee1490739c7b91.tar.bz2
Initial import
Diffstat (limited to 'scripts/decrypt')
-rwxr-xr-xscripts/decrypt15
1 files changed, 15 insertions, 0 deletions
diff --git a/scripts/decrypt b/scripts/decrypt
new file mode 100755
index 0000000..a6fb8d5
--- /dev/null
+++ b/scripts/decrypt
@@ -0,0 +1,15 @@
+#!/bin/bash
+# decrypt
+
+FILE="$1"
+BASENAME="`basename $0`"
+
+if [ -z "$FILE" ]; then
+ echo "Usage: `basename $0` <file>"
+ exit 1
+elif [ ! -f "keys/$FILE" ]; then
+ echo "File not found"
+ exit 1
+fi
+
+gpg -d keys/$FILE