summaryrefslogtreecommitdiff
path: root/gpg/gpg2.sh
blob: 2c0f21579826e3a8539c16be6a7bd4d73e546665 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

if [ -z "$1" ]; then
  echo "Usage: $0 <environment> [ .. additional parameters passwd on to gpg2 .. ]"
  exit 1
fi
NAME="$1"
shift

exec gpg2 --keyring "${BASH_SOURCE%/*}/vault-keyring-$NAME.gpg" --secret-keyring /dev/null --no-default-keyring --trust-model always "$@"