aboutsummaryrefslogtreecommitdiff
path: root/scripts/decrypt
blob: 55888ee9142f36a1b82af71af056104f8a560566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash
#
# Decrypt files.
#

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