summaryrefslogtreecommitdiff
path: root/scripts/decrypt
diff options
context:
space:
mode:
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